/* val-community.css — torneos de comunidad (lista, crear y página del torneo).
   Usa también piezas de val-premier.css (pm-card, pm-tabs, pm-pane, pm-logo...). */
.ct-main { box-sizing: border-box; width: 100%; max-width: var(--page-max, 1440px); margin: 0 auto; padding: 28px var(--sp-9, 28px) 64px; }
.ct-main--narrow { max-width: 900px; }
.ct-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.ct-head h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; color: var(--text-white); }
.ct-head .st-btn { margin-left: auto; }
.ct-head .vc-kicker a, .ct-mut a { color: inherit; text-decoration: none; }
.ct-head .vc-kicker a:hover, .ct-mut a:hover { color: var(--text-white); }
.ct-lead { margin: 4px 0 0; color: var(--text-muted); }
.ct-mut { color: var(--text-muted); font-size: 13px; margin: 0; }

/* Lista */
.ct-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; }
.ct-chip { padding: 6px 13px; border: 1px solid var(--border-subtle); border-radius: 999px; color: var(--text-gray); font-size: 13px; text-decoration: none; }
.ct-chip:hover { color: var(--text-white); border-color: var(--border-hover); }
.ct-chip.is-on { color: var(--text-white); border-color: var(--text-white); background: rgba(255,255,255,.06); }
.ct-region { margin-left: auto; }
.ct-region .st-inp { height: 34px; padding: 0 30px 0 10px; font-size: 13px; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.ct-card { display: block; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-surface); text-decoration: none; transition: border-color .15s, transform .15s; }
.ct-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.ct-ban { position: relative; height: 76px; background: radial-gradient(120% 120% at 100% 0%, rgba(255,70,85,.22), transparent 60%), linear-gradient(135deg, #1d0d10, var(--bg-surface) 75%); }
.ct-badge { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px; font: 700 11px var(--font-sans); padding: 3px 9px; border-radius: 999px; }
.ct-badge svg { width: 12px; height: 12px; }
.ct-badge--open { background: rgba(60,207,145,.14); color: var(--green, #3ccf91); }
.ct-badge--live { background: rgba(255,70,85,.16); color: var(--valorant-red); }
.ct-badge--closed { background: rgba(227,179,65,.14); color: var(--yellow, #E3B341); }
.ct-badge--done { background: rgba(255,255,255,.08); color: var(--text-gray); }
.ct-badge--prize { left: 12px; right: auto; background: rgba(227,179,65,.14); color: var(--yellow, #E3B341); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-body { padding: 14px 16px 16px; }
.ct-body > b { display: block; color: var(--text-white); font-size: 16px; }
.ct-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--text-gray); font-size: 13px; }
.ct-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ct-meta svg { width: 14px; height: 14px; color: var(--text-muted); }
.ct-bar { display: block; height: 4px; margin: 12px 0 10px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.ct-bar i { display: block; height: 100%; background: var(--valorant-red); border-radius: 3px; }
.ct-empty { padding: 48px 20px; text-align: center; border: 1px dashed var(--border-hover); border-radius: 12px; color: var(--text-muted); }
.ct-empty svg { width: 28px; height: 28px; color: var(--text-gray); }
.ct-empty b { display: block; margin: 10px 0 4px; color: var(--text-white); font-size: 16px; }
.ct-empty p { max-width: 460px; margin: 0 auto 14px; font-size: 14px; }

/* Crear */
.ct-form { display: grid; gap: 16px; }
.ct-sec { padding: 20px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-surface); }
.ct-sec h2 { margin: 0 0 4px; font: 600 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-gray); }
.ct-sec .st-inp { max-width: none; }
.ct-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.ct-sec .st-fld, .ct-two .st-fld, .ct-two .st-fld + .st-fld { margin-top: 0 !important; }
.ct-sec > .st-fld { margin-top: 14px !important; }
.ct-ta { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.ct-tz { align-self: end; margin-bottom: 10px; }
.ct-opts { display: grid; gap: 10px; margin-top: 14px; }
.ct-opts--4 { grid-template-columns: repeat(4, 1fr); }
.ct-opts--2 { grid-template-columns: repeat(2, 1fr); }
.ct-opt { padding: 13px 14px; border: 1px solid var(--border-subtle); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.ct-opt:hover { border-color: var(--border-hover); }
.ct-opt:has(input:checked) { border-color: var(--valorant-red); background: rgba(255,70,85,.06); }
.ct-opt:has(input:focus-visible) { outline: 2px solid var(--valorant-red); outline-offset: 2px; }
.ct-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ct-opt b { display: block; color: var(--text-white); font-size: 14px; }
.ct-opt span { display: block; margin-top: 2px; color: var(--text-muted); font-size: 12.5px; line-height: 1.4; }
.ct-foot { display: flex; align-items: center; gap: 16px; }
.ct-foot .st-btn { margin-left: auto; }

/* Torneo */
.ct-hero { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--border-subtle); border-radius: 14px 14px 0 0;
    background: linear-gradient(120deg, rgba(255,70,85,.08), var(--bg-surface) 60%); }
.ct-ic { width: 60px; height: 60px; flex: none; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--valorant-red), #7a1d26); color: #fff; }
.ct-ic svg { width: 26px; height: 26px; }
.ct-hero h1 { margin: 2px 0; font-size: 26px; color: var(--text-white); letter-spacing: -.01em; }
.ct-hstats { margin-left: auto; display: flex; gap: 26px; text-align: right; }
.ct-hstats b { display: flex; justify-content: flex-end; align-items: center; gap: 6px; font-size: 18px; color: var(--text-white); }
.ct-hstats b svg { width: 16px; height: 16px; color: var(--yellow, #E3B341); }
.ct-hstats span { display: block; color: var(--text-muted); font-size: 12px; }
.ct-st--open { color: var(--green, #3ccf91) !important; } .ct-st--live { color: var(--valorant-red) !important; }
.ct-st--closed { color: var(--yellow, #E3B341) !important; } .ct-st--done { color: var(--text-gray) !important; }
.ct-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--border-subtle); border-top: 0; background: var(--bg-surface); color: var(--text-white); }
.ct-act > svg { width: 18px; height: 18px; color: var(--text-gray); flex: none; }
.ct-act > .st-btn, .ct-act > a.st-btn, .ct-act > span.ct-mut { margin-left: auto; }
.ct-act .pm-err { flex-basis: 100%; margin: 0; }
.ct-act--hot { background: rgba(255,70,85,.07); } .ct-act--hot > svg { color: var(--valorant-red); }
.ct-act--ok > svg { color: var(--green, #3ccf91); }
.ct-act--warn > svg { color: var(--yellow, #E3B341); }
.ct-tabs { margin-bottom: 18px; }
.ct-count { font-size: 11px; color: var(--text-muted); border: 1px solid var(--border-subtle); border-radius: 999px; padding: 0 7px; }
.ct-73 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.ct-side { display: grid; gap: 16px; }
.ct-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 13.5px; }
.ct-kv dt { color: var(--text-muted); } .ct-kv dd { margin: 0; color: var(--text-white); text-align: right; }
.ct-team { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-subtle); text-decoration: none; color: var(--text-white); }
.ct-team:last-child { border-bottom: 0; }
.ct-team:hover b { color: var(--valorant-red); }
.ct-seed { width: 22px; color: var(--text-muted); font: 600 12px var(--font-mono); text-align: right; }
.ct-chk { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--green, #3ccf91); font-size: 12.5px; }
.ct-chk svg { width: 14px; height: 14px; }
.ct-rules { color: var(--text-gray); line-height: 1.6; white-space: normal; }
.ct-main > .ct-73 .pm-card h2 { margin: 0 0 12px; }

@media (max-width: 1000px) {
    .ct-73, .ct-two, .ct-opts--4 { grid-template-columns: minmax(0, 1fr); }
    .ct-hero { flex-wrap: wrap; } .ct-hstats { margin-left: 0; width: 100%; justify-content: space-between; text-align: left; }
    .ct-head { flex-wrap: wrap; } .ct-head .st-btn { margin-left: 0; }
}

/* Arriba de la lista: crear / unirse (izq.) y bracket destacado (der.) */
.ct-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; margin-bottom: 20px; }
.ct-cta, .ct-feat { padding: 22px; border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--bg-surface); }
.ct-cta { background: radial-gradient(120% 90% at 0% 0%, rgba(255,70,85,.12), transparent 55%), var(--bg-surface); }
.ct-cta h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; color: var(--text-white); }
.ct-cta-btns { display: grid; gap: 10px; margin-top: 18px; }
.ct-big { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border-subtle); border-radius: 12px; text-decoration: none; color: var(--text-white); transition: border-color .15s, background .15s; }
.ct-big:hover { border-color: var(--valorant-red); background: rgba(255,70,85,.06); }
.ct-big:first-child { border-color: rgba(255,70,85,.5); background: rgba(255,70,85,.08); }
.ct-big > svg { width: 22px; height: 22px; color: var(--valorant-red); flex: none; }
.ct-big b { display: block; font-size: 15px; } .ct-big small { display: block; color: var(--text-muted); font-size: 12.5px; }
.ct-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0 0; padding: 0; color: var(--text-gray); font-size: 13px; }
.ct-steps li { display: flex; align-items: center; gap: 7px; }
.ct-steps span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--text-white); font: 600 11px var(--font-mono); }
.ct-steps a { color: var(--text-white); }
.ct-feat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 16px; }
.ct-feat-head a { color: var(--text-white); text-decoration: none; } .ct-feat-head a:hover b { color: var(--valorant-red); }
.ct-feat-head b { font-size: 16px; color: var(--text-white); }
.ct-feat-head .ct-mut { flex-basis: 100%; }
.ct-badge--inline { position: static; }
.ct-feat .rb { --rb-gap: 18px; --rb-row: 32px; }
.ct-feat .rb-round { min-width: 140px; }
.ct-feat .rb-round:has(.rb-champ) { flex: 0 0 90px; min-width: 90px; }
.ct-feat .rb-name { font-size: 13px; }
.ct-feat .rb-cell { width: 30px; }
.ct-feat .pm-hint { margin-top: 14px; }
@media (max-width: 1100px) { .ct-top { grid-template-columns: minmax(0, 1fr); } }

/* Horario estimado (crear y página del torneo) */
.ct-est { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--border-subtle); border-radius: 10px; background: rgba(255,255,255,.02); }
.ct-est:empty { display: none; }
.ct-est-h { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 8px; }
.ct-est-h b { color: var(--text-white); font-size: 14px; } .ct-est-h span { color: var(--text-muted); font-size: 13px; }
.ct-est ol, .ct-sched { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ct-est ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 18px; }
.ct-est li, .ct-sched li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--border-subtle); font-size: 13.5px; }
.ct-est li span, .ct-sched li span { color: var(--text-gray); } .ct-est li b, .ct-sched li b { color: var(--text-white); font-weight: 500; }
.ct-sched li.is-soft span, .ct-sched li.is-soft b { color: var(--text-muted); }
.ct-sched li:last-child { border-bottom: 0; }
.ct-est .pm-err { margin: 10px 0 0; }

/* Fase 2: bracket, mi partido, lista de partidos y gestión */
.ct-bk { overflow-x: auto; }
.ct-bk .rb-block-label { margin-top: 0; }
.ct-mm { align-items: flex-start; }
.ct-mm > span:first-of-type { flex: 1 1 320px; }
.ct-mm small { display: block; margin-top: 2px; }
.ct-rep { flex-basis: 100%; color: var(--text-gray); font-size: 13.5px; }
.ct-score { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-basis: 100%; }
.ct-score label { display: inline-flex; align-items: center; gap: 8px; color: var(--text-white); font-size: 13.5px; }
.ct-score .st-inp { width: 64px; height: 36px; text-align: center; }
.ct-ml { display: grid; grid-template-columns: 150px 120px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border-subtle); font-size: 13.5px; }
.ct-ml:last-child { border-bottom: 0; }
.ct-ml.is-mine { box-shadow: inset 3px 0 0 #2fb3be; padding-left: 10px; }
.ct-ml-t, .ct-ml-r { color: var(--text-muted); }
.ct-ml-r small { display: block; font-size: 11.5px; }
.ct-ml-v { display: flex; align-items: center; gap: 10px; color: var(--text-gray); }
.ct-ml-v b { color: var(--text-gray); font-weight: 500; } .ct-ml-v b.w { color: var(--text-white); font-weight: 700; }
.ct-ml-v em { font-style: normal; color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 44px; text-align: center; }
.ct-ml-s { font: 600 11px var(--font-sans); padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--text-gray); }
.ct-ml-s--final { background: rgba(60,207,145,.12); color: var(--green, #3ccf91); }
.ct-ml-s--to { background: rgba(255,70,85,.14); color: var(--valorant-red); }
.ct-ml-s--waiting { background: rgba(227,179,65,.14); color: var(--yellow, #E3B341); }
.ct-ml-s--dispute { background: rgba(255,70,85,.2); color: var(--valorant-red); }
.ct-seeds { list-style: none; margin: 0 0 12px; padding: 0; counter-reset: sd; }
.ct-seeds li { counter-increment: sd; display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); }
.ct-seeds li .ct-seed::before { content: counter(sd); }
.ct-seeds b { color: var(--text-white); font-weight: 500; }
.ct-seed-btns { margin-left: auto; display: flex; gap: 2px; }
.ct-res { display: grid; grid-template-columns: 130px 1fr 60px 60px 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); font-size: 13.5px; }
.ct-res b { color: var(--text-white); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-res b:last-of-type { text-align: left; }
.ct-res .st-inp { height: 34px; text-align: center; max-width: none; padding: 0 6px; }
.ct-res .st-btn { height: 34px; }
.ct-res.is-dispute { background: rgba(255,70,85,.06); box-shadow: inset 3px 0 0 var(--valorant-red); padding-left: 10px; }
.ct-res.is-done { opacity: .75; }
.ct-ff { display: flex; gap: 4px; }
@media (max-width: 900px) { .ct-ml { grid-template-columns: 1fr auto; } .ct-ml-t, .ct-ml-r { grid-column: 1 / -1; } .ct-res { grid-template-columns: 1fr 52px 52px 1fr; } .ct-res .ct-ml-r { grid-column: 1 / -1; } }
/* Con el bracket abierto, la columna lateral baja y el bracket usa todo el ancho */
.ct-73:has(> div > .pm-pane[data-pane="bracket"]:not([hidden]) .ct-bk) { grid-template-columns: minmax(0, 1fr); }
.ct-73:has(> div > .pm-pane[data-pane="bracket"]:not([hidden]) .ct-bk) > .ct-side { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: start; }
/* Reportar torneo (plegado al final de la columna lateral) */
.ct-flag > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: var(--muted, #8a93a3); font-size: .85rem; }
.ct-flag > summary::-webkit-details-marker { display: none; }
.ct-flag > summary svg { width: 15px; height: 15px; }
.ct-flag[open] > summary { margin-bottom: 12px; color: inherit; }
.ct-flag form { display: grid; gap: 10px; }
.ct-flag-ok { display: flex; align-items: center; gap: 8px; margin: 0; color: #2fb3be; }
.ct-flag-ok svg { width: 16px; height: 16px; }
/* Discord */
.ct-disc { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; border-color: rgba(88, 101, 242, .45); background: linear-gradient(135deg, rgba(88, 101, 242, .16), transparent 70%); }
.ct-disc:hover { border-color: #5865f2; }
.ct-disc > svg { width: 28px; height: 28px; color: #5865f2; flex: none; }
.ct-disc span { flex: 1; display: grid; gap: 2px; }
.ct-disc small { color: var(--muted, #8a93a3); font-size: .8rem; }
.ct-disc > i, .ct-disc > svg.lucide { width: 16px; height: 16px; color: var(--muted, #8a93a3); }
.ct-disc-f { display: flex; gap: 8px; }
.ct-disc-f .st-inp { flex: 1; min-width: 0; }
.ct-tb.ct-tb--card { position: absolute; left: 14px; bottom: -28px; width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 3px var(--bg-surface, #151a22); }
.ct-ban { background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--tb1, #ff4655) 45%, transparent), transparent 60%), linear-gradient(135deg, #10141b, var(--bg-surface) 75%) !important; }
.ct-card .ct-body { padding-top: 38px; }
/* Selector */
.ct-look { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.ct-look.is-busy { opacity: .6; pointer-events: none; }
.ct-look-l { margin: 10px 0 6px; font-size: .8rem; color: var(--muted, #8a93a3); }
.ct-look-l:first-child { margin-top: 0; }
.ct-look-ic { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 6px; }
.ct-look-ic label, .ct-look-co label { position: relative; cursor: pointer; }
.ct-look-ic input, .ct-look-co input { position: absolute; opacity: 0; pointer-events: none; }
.ct-look-ic label > svg { box-sizing: content-box; width: 18px; height: 18px; padding: 8px; border-radius: 9px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); color: var(--muted, #8a93a3); display: block; }
.ct-look-ic input:checked + svg { color: #fff; border-color: #2fb3be; background: rgba(47, 179, 190, .16); }
.ct-look-ic input:focus-visible + svg, .ct-look-co input:focus-visible + span { outline: 2px solid #2fb3be; outline-offset: 2px; }
.ct-look-co { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-look-co span { display: block; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--tb2), var(--tb1)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.ct-look-co input:checked + span { box-shadow: 0 0 0 2px var(--bg-surface, #151a22), 0 0 0 4px #fff; }
.ct-look-up { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) { .ct-look { grid-template-columns: 1fr; } }
/* Map veto (js/valorant/community-veto.js) */
.ct-veto { flex-basis: 100%; width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ct-vh { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ct-vh > b { display: inline-flex; align-items: center; gap: 8px; }
.ct-vh svg { width: 16px; height: 16px; }
.ct-vt { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted, #8a93a3); }
.ct-vt.is-me { color: #2fb3be; font-weight: 600; }
.ct-vt.is-done { color: #3ccf7a; }
.ct-vt em { font-style: normal; font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: inherit; }
.ct-vt em.is-low { background: rgba(255, 70, 85, .18); color: #ff4655; }
.ct-vready { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; font-size: .85rem; }
.ct-vready > span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted, #8a93a3); }
.ct-vready > span.is-on { color: #3ccf7a; }
.ct-vready svg { width: 15px; height: 15px; }
.ct-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ct-vmap { position: relative; height: 78px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; overflow: hidden; padding: 8px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 1px;
           color: #fff; text-align: left; font: inherit; background: linear-gradient(135deg, #24303f, #141a22) center / cover no-repeat; cursor: default; }
.ct-vmap::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 10, 14, .9), rgba(8, 10, 14, .15)); }
.ct-vmap > * { position: relative; }
.ct-vmap b { font-size: .9rem; letter-spacing: .02em; text-transform: uppercase; }
.ct-vmap small { font-size: .7rem; color: rgba(255, 255, 255, .75); }
.ct-vmap.is-ban { filter: grayscale(1); opacity: .45; }
.ct-vmap.is-ban b { text-decoration: line-through; }
.ct-vmap.is-pick { border-color: #2fb3be; box-shadow: 0 0 0 1px #2fb3be inset; }
.ct-vmap[class*="can-"] { cursor: pointer; transition: transform .12s ease, border-color .12s ease; }
.ct-vmap[class*="can-"]:hover, .ct-vmap[class*="can-"]:focus-visible { transform: translateY(-2px); border-color: #fff; outline: none; }
.ct-vmap.can-ban:hover { border-color: #ff4655; }
.ct-vact { position: absolute !important; top: 6px; right: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; font-size: .7rem; font-weight: 600; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .12s; }
.ct-vact svg { width: 12px; height: 12px; }
.ct-vmap:hover .ct-vact, .ct-vmap:focus-visible .ct-vact { opacity: 1; }
.ct-vside { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ct-vsum { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: .88rem; }
.ct-maps { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.ct-mapc { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: .75rem; }
.ct-mapc small { color: var(--muted, #8a93a3); }
.ct-ml-m { grid-column: 1 / -1; }
/* Pool custom (Manage) */
.ct-mpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 8px; }
.ct-mpick label { cursor: pointer; }
.ct-mpick input { position: absolute; opacity: 0; pointer-events: none; }
.ct-mpick span { display: flex; align-items: flex-end; height: 58px; padding: 7px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(135deg, #24303f, #141a22) center / cover; position: relative; overflow: hidden; filter: grayscale(1); opacity: .5; }
.ct-mpick span::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 10, 14, .85), transparent); }
.ct-mpick b { position: relative; font-size: .8rem; text-transform: uppercase; }
.ct-mpick input:checked + span { filter: none; opacity: 1; border-color: #2fb3be; }
.ct-mpick input:focus-visible + span { outline: 2px solid #2fb3be; outline-offset: 2px; }
.ct-vready > span b { color: var(--text-white, #fff); font-variant-numeric: tabular-nums; }
.ct-vready > span small { margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: rgba(60, 207, 122, .14); color: #3ccf7a; font-size: .7rem; }
.ct-vready > span.is-on b { color: #3ccf7a; }
.ct-vt.is-late { color: #f0c419; }
.ct-vclaim { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(240, 196, 25, .1); border: 1px solid rgba(240, 196, 25, .3); }
.ct-vclaim > svg { width: 18px; height: 18px; color: #f0c419; flex: none; }
.ct-vclaim > span { flex: 1; min-width: 200px; font-size: .88rem; }
.ct-vclaim-n { margin: 0 0 10px; }
/* Retrasos */
.ct-late { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: rgba(240, 196, 25, .14); color: #f0c419; vertical-align: 1px; }
.ct-delay { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: rgba(240, 196, 25, .1); color: #f0c419; font-size: .82rem; }
.ct-delay svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
/* Horario por días */
.ct-days { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ct-days li { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(200px, 1.4fr); align-items: center; gap: 10px; }
.ct-days li span { font-weight: 600; font-size: .88rem; }
.ct-days .st-inp:disabled { opacity: .7; }
@media (max-width: 560px) { .ct-days li { grid-template-columns: 1fr; gap: 4px; } }
.ct-est ol.ct-days { display: grid; grid-template-columns: 1fr; gap: 6px; counter-reset: none; }
.ct-est ol.ct-days li { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(200px, 1.4fr); align-items: center; gap: 10px; padding: 0; border: 0; background: none; min-width: 0; }
.ct-est ol.ct-days li::before, .ct-est ol.ct-days li::after { content: none; display: none; }
.ct-est ol.ct-days .st-inp { width: 100%; }
.ct-drawn { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .82rem; }
.ct-drawn svg { width: 14px; height: 14px; }
/* Squads (community_squads.sql) */
.ct-mine { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 10px 24px; margin-bottom: 16px; padding: 12px 16px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-surface); }
.ct-mine-i { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-width: 0; }
.ct-mine-l { flex-basis: 100%; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.ct-mine-i a { color: var(--text-white); text-decoration: none; display: inline-flex; align-items: baseline; gap: 6px; }
.ct-mine-i a:hover b { text-decoration: underline; }
.ct-mine-i small { color: var(--text-muted); font-size: .78rem; }
.ct-mine-inv { color: #f0c419; font-weight: 600; text-transform: none; letter-spacing: 0; }
@media (max-width: 700px) { .ct-mine { grid-template-columns: 1fr; } }
.ct-sqnew .st-inp { width: 180px; }
.ct-sqnew .ct-sqtag { width: 90px; text-transform: uppercase; }
.ct-sqnew[hidden] { display: none !important; }
.ct-squad { margin-top: 14px; }
.ct-squad > h2 { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.ct-squad > h2 > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.ct-squad > h2 svg { width: 16px; height: 16px; }
.ct-sq-n { font-size: .78rem; text-transform: none; letter-spacing: 0; color: #f0c419; font-weight: 600; }
.ct-sq-n.is-ok { color: #3ccf7a; }
.ct-sq-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ct-sq-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .04); }
.ct-sq-list li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-sq-list li small { color: var(--text-muted); font-size: .75rem; }
.ct-sq-list li.is-inv { opacity: .6; border: 1px dashed var(--border-subtle); background: none; }
.ct-sq-share { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; }
.ct-sq-share .ct-look-l { margin-top: 0; }
.ct-code { font-family: ui-monospace, monospace; letter-spacing: .08em; color: var(--text-white); }
.ct-sqb { padding: 1px 7px; border-radius: 999px; font-size: .7rem; font-weight: 600; background: rgba(164, 107, 255, .16); color: #b98bff; }
@media (max-width: 700px) { .ct-sq-share { grid-template-columns: 1fr; } }
/* Inscripción y entrada (community_access.sql) */
.ct-opts--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .ct-opts--3 { grid-template-columns: 1fr; } }
.ct-opt:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.ct-check { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 6px; font-weight: 600; cursor: pointer; }
.ct-check small { font-weight: 400; color: var(--text-muted); }
.ct-fee { margin-top: 6px; display: grid; gap: 4px; }
.ct-fee[hidden] { display: none; }
.ct-fee-calc { color: #2fb3be; margin: 4px 0; }
.ct-warn-sm { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: rgba(240, 196, 25, .08); color: #e8c75a; font-size: .8rem; }
.ct-warn-sm svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.ct-req { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--border-subtle); }
.ct-req:first-of-type { border-top: 0; }
.ct-req > span { flex: 1; min-width: 200px; }
.ct-req small { display: block; color: var(--text-muted); font-size: .78rem; }
#ctPrizeSec[hidden] { display: none; }

/* móvil: nada se sale de la pantalla (el bracket hace scroll dentro de su tarjeta) */
.ct-73 > *, .ct-top > *, .ct-side > * { min-width: 0; }
.ct-grid { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }

/* ── Opción B (rama colores): cada torneo lleva su color (--tc claro, --tcd oscuro; los pone la lista) ── */
.ct-card[style*="--tc"] { border-color: color-mix(in srgb, var(--tc) 16%, var(--border-subtle)); }
.ct-card[style*="--tc"]:hover { border-color: color-mix(in srgb, var(--tc) 55%, transparent); box-shadow: 0 10px 28px -16px color-mix(in srgb, var(--tc) 70%, transparent); }
.ct-card[style*="--tc"] .ct-ban { background: linear-gradient(120deg, color-mix(in srgb, var(--tc) 42%, transparent), color-mix(in srgb, var(--tc) 8%, transparent) 70%), var(--bg-surface) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--tc) 22%, transparent); }
.ct-card[style*="--tc"] .ct-bar i { background: var(--tc); }
.ct-card[style*="--tc"]:hover .ct-body > b { color: color-mix(in srgb, var(--tc) 45%, #fff); }
.ct-badge--closed { background: rgba(240,192,64,.14); color: var(--c-prize, #f0c040); }
.ct-badge--prize { background: rgba(0,0,0,.45); color: var(--c-prize, #f0c040); box-shadow: inset 0 0 0 1px rgba(240,192,64,.35); }
.ct-card .ct-badge--open, .ct-card .ct-badge--live, .ct-card .ct-badge--done { background-color: rgba(0,0,0,.45); }
.ct-card .ct-badge--open { box-shadow: inset 0 0 0 1px rgba(52,211,153,.35); }
.ct-card .ct-badge--live { box-shadow: inset 0 0 0 1px rgba(255,70,85,.45); }
.ct-chip.is-on { color: #111; border-color: var(--text-white); background: var(--text-white); }
/* Página del torneo: cabecera y pestaña activa con su color */
.ct-main[style*="--tc"] .ct-hero { background: linear-gradient(120deg, color-mix(in srgb, var(--tc) 22%, transparent), var(--bg-surface) 62%); border-color: color-mix(in srgb, var(--tc) 22%, var(--border-subtle)); }
.ct-main[style*="--tc"] .pm-tabs button.is-on { border-bottom-color: var(--tc); }
/* Bracket con el color del torneo (portada de Community y página del torneo); el campeón, en dorado */
.ct-feat[style*="--tc"] .rb, .ct-main[style*="--tc"] .rb { --rb-teal: var(--tcd); --rb-teal-hi: var(--tc); }
.ct-feat[style*="--tc"] .rb-win .rb-cell, .ct-main[style*="--tc"] .rb-win .rb-cell { background: color-mix(in srgb, var(--tc) 70%, var(--tcd)); }
.ct-feat .rb-champ, .ct-main .rb-champ { border-color: rgba(240, 196, 25, .6); color: #f0c419; }

/* Código del torneo: buscarlo en Community y copiarlo en la página del torneo */
.ct-code { margin-top: 14px; display: grid; gap: 6px; }
.ct-code label { font: 500 12.5px/1.4 var(--font-sans, Inter, system-ui, sans-serif); letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.ct-code-row { display: flex; gap: 8px; }
.ct-code-row .st-inp { flex: 1; min-width: 0; font-family: var(--font-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; }
.ct-code-err { margin: 0; font: 500 12.5px/1.4 var(--font-sans, Inter, system-ui, sans-serif); color: #ff6b76; }
.ct-code-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; border: 1px solid var(--border-subtle); border-radius: 999px; background: rgba(255,255,255,.04); color: var(--text-light, #c7cdd6); font: 600 12px/1.4 var(--font-mono, ui-monospace, monospace); letter-spacing: .08em; cursor: pointer; transition: border-color .15s, color .15s; }
.ct-code-chip svg { width: 13px; height: 13px; opacity: .7; }
.ct-code-chip:hover { border-color: var(--border-hover); color: var(--text-white); }
.ct-code-chip.is-ok { border-color: rgba(52,211,153,.5); color: #34d399; }

/* Buscador de torneos por nombre u organizador (barra de filtros) */
.ct-search { position: relative; margin-left: auto; display: flex; align-items: center; }
.ct-search > svg { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--text-muted); pointer-events: none; }
.ct-search .st-inp { height: 34px; width: 240px; padding: 0 30px 0 32px; font-size: 13px; }
.ct-search .st-inp::-webkit-search-cancel-button { display: none; }
.ct-search-x { position: absolute; right: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--text-muted); }
.ct-search-x:hover { color: var(--text-white); background: rgba(255,255,255,.06); }
.ct-search-x svg { width: 14px; height: 14px; }
.ct-search + .ct-region { margin-left: 0; }
@media (max-width: 720px) { .ct-search { order: 10; margin-left: 0; flex: 1 1 100%; } .ct-search .st-inp { width: 100%; } }

/* Manage → Schedule (torneo empezado): fases (rondas) desplegables y sus partidos, cada uno con su hora */
.ct-ph { border: 1px solid var(--border-subtle); border-radius: 10px; margin-top: 8px; background: rgba(255,255,255,.015); }
.ct-ph-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
.ct-ph-n { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: center; text-align: left; background: none; border: 0; padding: 4px 0; color: inherit; font: inherit; cursor: pointer; }
.ct-ph-n b, .ct-ph-n small { grid-column: 1; }
.ct-ph-n .ct-ph-chev { grid-column: 2; grid-row: 1 / span 2; }
.ct-ph-n:focus-visible { outline: 2px solid var(--c-info, #2BD4C4); outline-offset: 2px; border-radius: 6px; }
.ct-ph-n b { font-size: 14px; color: var(--text-white); }
.ct-ph-n small { font-size: 12px; color: var(--text-muted); }
.ct-ph-set { display: flex; gap: 8px; align-items: center; }
.ct-ph .st-inp[type=datetime-local] { height: 34px; width: 200px; padding: 0 8px; font-size: 13px; color-scheme: dark; }
.ct-ph .st-btn { height: 34px; white-space: nowrap; }
.ct-ph-when { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.ct-ph-chev { width: 16px; height: 16px; color: var(--text-muted); transition: transform .2s; flex: none; }
.ct-ph.is-open .ct-ph-chev { transform: rotate(180deg); }
.ct-ph.is-done { opacity: .7; }
.ct-ph-list { list-style: none; margin: 0; padding: 0 12px 10px; display: grid; gap: 6px; }
.ct-ph-list[hidden] { display: none; }
.ct-pm { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.03); }
.ct-pm-t { flex: 1; min-width: 0; font-size: 13px; color: var(--text-white); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ct-pm-t i { font-style: normal; color: var(--text-muted); font-size: 12px; }
.ct-pm.is-done { opacity: .6; }
.ct-tag { font-style: normal; font-size: 11px; padding: 2px 7px; border-radius: 999px; background: rgba(43,212,196,.12); color: #5fe0d3; }
.ct-tag--late { background: rgba(240,180,41,.12); color: #f0b429; }
@media (max-width: 720px) {
    .ct-ph-head { flex-wrap: wrap; }
    .ct-ph-set, .ct-pm { flex-wrap: wrap; }
    .ct-ph-set { order: 3; flex: 1 1 100%; }
    .ct-ph .st-inp[type=datetime-local] { flex: 1; width: auto; min-width: 0; }
    .ct-pm-t { flex: 1 1 100%; }
    .ct-pm .st-inp[type=datetime-local] { flex: 1; width: auto; }
}
