.tournament-page{width:min(1240px,calc(100% - 40px));min-width:0;margin:0 auto;padding:32px 0 72px;color:var(--theme-text);font-family:var(--font)}.tournament-page *{box-sizing:border-box}
.tournament-page h1,.tournament-page h2,.tournament-page p{margin:0}.tournament-page h1{font-family:var(--font-display,Georgia,serif);font-size:clamp(2.35rem,5vw,4.4rem);line-height:.95;color:var(--theme-title);letter-spacing:-.04em}.tournament-page h2{font-size:1.15rem;color:var(--theme-title)}
.eyebrow{display:block;margin-bottom:8px;color:var(--theme-accent-text);font-size:.72rem;font-weight:800;letter-spacing:.16em}.tournament-hero{display:flex;align-items:end;justify-content:space-between;gap:28px;padding:18px 0 30px;border-bottom:1px solid var(--theme-border)}.tournament-hero p,.t-detail-hero p{margin-top:12px;color:var(--theme-muted);font-size:1rem}
.t-btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 18px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface);color:var(--theme-text);font:700 .9rem var(--font);text-decoration:none;cursor:pointer}.t-btn:hover{background:var(--theme-surface-hover)}.t-btn:focus-visible{outline:3px solid var(--theme-focus);outline-offset:2px}.t-btn-primary{border-color:transparent;background:var(--theme-accent);color:var(--theme-on-accent);box-shadow:0 3px 0 var(--theme-accent-edge)}.t-btn-primary:hover{background:var(--theme-accent-hover)}.t-btn:disabled{cursor:not-allowed;opacity:.48;box-shadow:none}.t-btn:disabled:hover{background:var(--theme-accent)}.t-btn-quiet{background:transparent}.t-btn-danger{color:var(--theme-error);border-color:color-mix(in srgb,var(--theme-error) 38%,transparent);background:var(--theme-error-soft)}
.t-section{padding-top:30px}.t-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.t-section-head>span{color:var(--theme-muted);font-size:.78rem}.live-dot{display:inline-flex;align-items:center;gap:6px}.live-dot:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--theme-success);box-shadow:0 0 0 4px var(--theme-success-soft)}
.t-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.t-list{display:grid;gap:8px}.t-card{min-height:118px;display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:15px;padding:18px;border:1px solid var(--theme-border);border-radius:16px;background:var(--theme-surface);color:var(--theme-text);text-decoration:none;box-shadow:0 10px 26px var(--theme-shadow);transition:transform .18s ease,border-color .18s ease}.t-card:hover{transform:translateY(-2px);border-color:var(--theme-accent)}.t-card-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:13px;background:var(--theme-accent-soft);color:var(--theme-accent-text);font-size:1.65rem}.t-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.t-card-top strong{font-size:1.02rem;color:var(--theme-title)}.t-meta{display:flex;flex-wrap:wrap;gap:7px 13px;margin:11px 0 7px;color:var(--theme-muted);font-size:.78rem}.t-card time{font-size:.78rem;color:var(--theme-faint)}.t-card-arrow{font-size:1.35rem;color:var(--theme-accent-text)}
.t-status{display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border-radius:999px;background:var(--theme-surface-alt);color:var(--theme-muted);font-size:.68rem;font-weight:800}.t-status-active,.t-status-registration{background:var(--theme-success-soft);color:var(--theme-success)}.t-status-cancelled{background:var(--theme-error-soft);color:var(--theme-error)}.t-empty{min-width:0;min-height:120px;display:grid;place-content:center;gap:6px;padding:18px;text-align:center;border:1px dashed var(--theme-border);border-radius:16px;color:var(--theme-muted);overflow-wrap:anywhere}.t-empty strong{color:var(--theme-title)}
.t-back{display:inline-flex;min-height:44px;align-items:center;color:var(--theme-accent-text);font-weight:700;text-decoration:none}.t-detail-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(390px,.7fr);gap:36px;padding:20px 0 26px;border-bottom:1px solid var(--theme-border)}.t-detail-hero>div{min-width:0}.t-detail-hero h1{font-size:clamp(2.2rem,4vw,3.7rem);overflow-wrap:anywhere}.t-kicker{display:flex;gap:8px;align-items:center;margin-bottom:12px}.t-kicker>span:not(.t-status){font-size:.75rem;color:var(--theme-muted)}.t-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;min-width:0}.t-facts div{min-width:0;padding:13px 15px;border-radius:12px;background:var(--theme-surface);border:1px solid var(--theme-border)}.t-facts dt{font-size:.68rem;text-transform:uppercase;letter-spacing:.1em;color:var(--theme-muted)}.t-facts dd{margin:5px 0 0;color:var(--theme-title);font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.t-actionbar{display:flex;justify-content:flex-end;gap:10px;padding:16px 0}.t-actionbar form{margin:0}
.t-detail-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);gap:16px}.t-panel,.t-admin-panel,.t-form-card{border:1px solid var(--theme-border);border-radius:16px;background:var(--theme-surface);box-shadow:0 10px 28px var(--theme-shadow)}.t-panel{padding:18px;min-width:0}.t-table-wrap{overflow-x:auto}.t-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.t-table th,.t-table td{height:46px;padding:0 10px;text-align:right;border-top:1px solid var(--theme-border);white-space:nowrap}.t-table th:nth-child(2),.t-table td:nth-child(2){text-align:left}.t-table thead th{height:36px;border:0;color:var(--theme-muted);font-size:.7rem;text-transform:uppercase}.t-table tbody th{color:var(--theme-title)}.t-table .is-me{background:var(--theme-accent-soft)}
.t-rounds>details{border-top:1px solid var(--theme-border)}.t-rounds>details>summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-weight:800;color:var(--theme-title)}.t-rounds summary span{font-size:.72rem;color:var(--theme-muted)}.t-pairings{display:grid;gap:8px;padding-bottom:12px}.t-pairing{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:10px;padding:10px;border-radius:10px;background:var(--theme-surface-alt);font-size:.82rem}.t-pairing>div:nth-child(2){display:grid;gap:3px}.t-pairing>div:nth-child(2) span{color:var(--theme-muted)}.t-board-number{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:var(--theme-surface);font-weight:800}.t-pairing-result{max-width:120px;text-align:right;color:var(--theme-muted)}.t-pairing-result a{color:var(--theme-accent-text);font-weight:800}.t-forfeit{grid-column:2/-1}.t-forfeit>summary{cursor:pointer;color:var(--theme-error);font-weight:700}.t-forfeit form{display:grid;gap:8px;margin-top:8px}.t-forfeit select,.t-forfeit textarea{width:100%}
.t-admin-panel{display:flex;justify-content:space-between;gap:24px;margin-top:16px;padding:18px}.t-admin-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px}.t-admin-actions form{margin:0}.t-cancel-form,.t-add-player{display:flex;gap:8px}.t-cancel-form input,.t-add-player input{width:150px;min-height:44px;padding:10px 12px;border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-input);color:var(--theme-text);font:inherit}
.t-join-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:16px 0;padding:14px 16px;border:1px solid var(--theme-border);border-radius:14px;background:var(--theme-surface)}.t-join-strip>div{display:grid;gap:3px}.t-join-strip strong{color:var(--theme-title)}.t-join-strip span{color:var(--theme-muted);font-size:.86rem}.t-join-strip form{margin:0}
.t-player-state{display:flex;align-items:center;gap:12px;margin:16px 0;padding:14px 16px;border:1px solid var(--theme-border);border-radius:14px;background:var(--theme-surface)}.t-player-state-dot{width:10px;height:10px;flex:none;border-radius:50%;background:var(--theme-accent);box-shadow:0 0 0 5px var(--theme-accent-soft)}.t-player-state>div{display:grid;gap:3px;min-width:0}.t-player-state strong{color:var(--theme-title)}.t-player-state span{color:var(--theme-muted);font-size:.86rem;overflow-wrap:anywhere}
.t-control{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;margin:16px 0;padding:18px;border:1px solid var(--theme-border);border-radius:16px;background:var(--theme-surface);box-shadow:0 10px 28px var(--theme-shadow)}.t-control-copy{min-width:0}.t-control-copy .eyebrow{margin-bottom:5px}.t-control-copy h2{font-size:1.25rem}.t-control-copy p{margin-top:5px;color:var(--theme-muted);font-size:.88rem;line-height:1.45}.t-control-main{display:flex;justify-content:flex-end}.t-control-main form{margin:0}.t-control-main .t-btn{min-width:180px}
.t-manage-menu{grid-column:1/-1;border-top:1px solid var(--theme-border)}.t-manage-menu>summary{min-height:46px;display:flex;align-items:center;gap:9px;color:var(--theme-muted);font-weight:750;font-size:.86rem;cursor:pointer;list-style:none}.t-manage-menu>summary::-webkit-details-marker{display:none}.t-manage-menu>summary:before{content:"\2699";font-size:1rem}.t-manage-menu>summary:after{content:"+";margin-left:auto;color:var(--theme-accent-text);font-size:1.2rem}.t-manage-menu[open]>summary:after{content:"−"}.t-manage-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:12px}.t-manage-body form{margin:0}.t-manage-link{width:100%;min-height:62px;display:grid;align-content:center;gap:3px;padding:10px 13px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface-alt);color:var(--theme-text);font:inherit;text-align:left;text-decoration:none;cursor:pointer}.t-manage-link:hover{background:var(--theme-surface-hover)}.t-manage-link span{font-size:.88rem;font-weight:800}.t-manage-link small{color:var(--theme-muted);font-size:.74rem}.t-add-player{display:grid;gap:6px;padding:10px 13px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface-alt)}.t-add-player label{font-size:.78rem;font-weight:800;color:var(--theme-title)}.t-add-player>div{display:flex;gap:7px}.t-add-player input{width:100%;min-width:0}.t-danger-zone{grid-column:1/-1;border-top:1px solid var(--theme-border)}.t-danger-zone>summary{min-height:44px;display:flex;align-items:center;color:var(--theme-error);font-size:.82rem;font-weight:750;cursor:pointer}.t-danger-zone>div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 0 2px}.t-danger-zone p{color:var(--theme-muted);font-size:.8rem}
.t-form-page{max-width:1040px}.t-form-card{margin-top:20px;padding:24px}.t-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.t-field{display:grid;gap:7px}.t-field-description{grid-column:1/-1}.t-field label{font-size:.78rem;font-weight:800;color:var(--theme-title)}.t-field input,.t-field textarea,.t-field select,.t-cancel-form input,.t-forfeit select,.t-forfeit textarea{min-height:44px;padding:10px 12px;border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-input);color:var(--theme-text);font:inherit}.t-field input[type=checkbox]{min-height:auto;width:20px;height:20px}.t-field ul{margin:0;padding-left:18px;color:var(--theme-error);font-size:.78rem}.t-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid var(--theme-border)}
@media(max-width:900px){.tournament-page{width:min(100% - 24px,720px);padding:20px 0 110px}.tournament-hero,.t-detail-hero{grid-template-columns:minmax(0,1fr);align-items:start}.t-detail-hero{gap:20px}.t-grid,.t-detail-grid{grid-template-columns:minmax(0,1fr)}.t-admin-panel{display:grid}.t-admin-actions{justify-content:start}.t-control{grid-template-columns:minmax(0,1fr)}.t-control-main{justify-content:start}.t-manage-menu{grid-column:auto}}
@media(max-width:560px){.tournament-page{width:calc(100% - 16px)}.tournament-hero{display:grid}.tournament-page h1{font-size:2.35rem}.t-grid{gap:9px}.t-card{grid-template-columns:42px minmax(0,1fr) auto;min-height:104px;padding:13px}.t-card-mark{width:42px;height:42px}.t-card-top{align-items:start}.t-status{white-space:nowrap}.t-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.t-facts dd{font-size:.9rem}.t-detail-grid{gap:10px}.t-panel{max-width:100%;padding:12px;overflow:hidden}.t-table-wrap{max-width:100%}.t-table th,.t-table td{padding:0 7px}.t-table th:nth-child(4),.t-table td:nth-child(4),.t-table th:nth-child(5),.t-table td:nth-child(5),.t-table th:nth-child(6),.t-table td:nth-child(6){display:none}.t-section-head>span{display:none}.t-form-card{padding:15px}.t-form-grid{grid-template-columns:1fr}.t-field-description{grid-column:auto}.t-admin-actions,.t-cancel-form,.t-add-player{display:grid;grid-template-columns:1fr;width:100%}.t-admin-actions .t-btn,.t-cancel-form input,.t-add-player input{width:100%}.t-join-strip{align-items:stretch}.t-join-strip,.t-danger-zone>div{display:grid}.t-join-strip .t-btn,.t-control-main,.t-control-main form,.t-control-main .t-btn{width:100%}.t-manage-body{grid-template-columns:1fr}.t-danger-zone{grid-column:auto}.t-add-player>div{display:grid}.t-add-player .t-btn{width:100%}}

/* Crear torneo: flujo corto; lo infrecuente permanece plegado. */
.t-form-page{width:min(780px,calc(100% - 40px));padding-top:20px}.t-create-head{padding:8px 0 26px}.t-create-head h1{font-size:clamp(2.5rem,6vw,4.2rem)}.t-create-head p{margin-top:10px;color:var(--theme-muted)}.t-quick-form{display:grid;gap:12px}.t-quick-card{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px;padding:20px;border:1px solid var(--theme-border);border-radius:15px;background:var(--theme-surface);box-shadow:0 8px 24px var(--theme-shadow)}.t-step{display:flex;align-items:flex-start;gap:12px;padding-top:2px}.t-step>span{width:30px;height:30px;display:grid;place-items:center;flex:none;border-radius:9px;background:var(--theme-accent-soft);color:var(--theme-accent-text);font-weight:900}.t-step>div{display:grid;gap:3px}.t-step strong{color:var(--theme-title)}.t-step small{color:var(--theme-muted);line-height:1.35}.t-quick-fields{display:grid;gap:14px}.t-quick-fields-main{grid-template-columns:minmax(0,1.35fr) minmax(190px,.8fr)}.t-quick-form .t-field input,.t-quick-form .t-field select,.t-quick-form .t-field textarea{width:100%}.t-field label small{font-weight:500;color:var(--theme-muted)}.t-time-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;grid-column:2}.t-time-presets button{min-height:62px;display:grid;place-content:center;gap:2px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-input);color:var(--theme-text);cursor:pointer}.t-time-presets button strong{font-size:1rem;font-variant-numeric:tabular-nums}.t-time-presets button small{color:var(--theme-muted)}.t-time-presets button:hover{border-color:var(--theme-accent);background:var(--theme-surface-hover)}.t-time-presets button:focus-visible{outline:3px solid var(--theme-focus);outline-offset:2px}.t-time-presets button.is-selected{border-color:var(--theme-accent);background:var(--theme-accent-soft);box-shadow:inset 0 -3px 0 var(--theme-accent)}.t-clock-fields{grid-column:2;display:grid;grid-template-columns:1fr 20px 1fr;align-items:end;gap:9px;margin-top:10px}.t-clock-fields>span{height:44px;display:grid;place-items:center;color:var(--theme-muted);font-size:1.2rem}.t-round-card{align-items:center}.t-round-card>.t-field{max-width:230px}.t-advanced{overflow:hidden;border:1px solid var(--theme-border);border-radius:15px;background:var(--theme-surface)}.t-advanced>summary{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 20px;cursor:pointer;color:var(--theme-title);font-weight:800;list-style:none}.t-advanced>summary::-webkit-details-marker{display:none}.t-advanced>summary:after{content:"+";font-size:1.4rem;color:var(--theme-accent-text)}.t-advanced[open]>summary:after{content:"−"}.t-advanced>summary small{margin-left:auto;color:var(--theme-muted);font-weight:500}.t-advanced-body{display:grid;gap:18px;padding:20px;border-top:1px solid var(--theme-border)}.t-advanced-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.t-option-row{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 14px;border:1px solid var(--theme-border);border-radius:11px;background:var(--theme-surface-alt)}.t-option-row>div:first-child{display:grid;gap:3px}.t-option-row strong{color:var(--theme-title);font-size:.9rem}.t-option-row small{color:var(--theme-muted);line-height:1.35}.t-choice-list ul{display:flex;gap:7px;margin:0;padding:0;list-style:none}.t-choice-list label{min-height:38px;display:flex;align-items:center;gap:6px;padding:0 10px;border-radius:8px;background:var(--theme-surface);cursor:pointer}.t-check-row{cursor:pointer}.t-check-row input{width:22px!important;height:22px!important;min-height:0!important;accent-color:var(--theme-accent)}.t-create-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 2px}.t-create-actions p{color:var(--theme-muted);font-size:.82rem}.t-create-actions .t-btn{min-width:180px}.t-form-errors{padding:12px 14px;border-radius:10px;background:var(--theme-error-soft);color:var(--theme-error)}
@media(max-width:760px){.t-form-page{width:min(100% - 20px,620px);padding-bottom:110px}.t-quick-card{grid-template-columns:1fr;gap:16px}.t-quick-fields-main{grid-template-columns:1fr}.t-time-presets,.t-clock-fields{grid-column:1}.t-create-actions{align-items:stretch;flex-direction:column}.t-create-actions .t-btn{width:100%}.t-create-actions p{text-align:center}.t-advanced>summary small{display:none}}
@media(max-width:430px){.t-create-head h1{font-size:2.35rem}.t-quick-card{padding:15px}.t-time-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.t-advanced-grid{grid-template-columns:1fr}.t-option-row{align-items:flex-start;flex-direction:column}.t-choice-list,.t-choice-list ul{width:100%}.t-choice-list li{flex:1}.t-choice-list label{justify-content:center}.t-advanced-body{padding:15px}}
