/* v249: vista de torneos aislada. Un estado visible por vez. */
#r246Viewer[hidden],#r247Hub[hidden],#r247Stage[hidden],#r247ReplayShell[hidden],#r246Close[hidden],#r246SourceLink[hidden]{display:none!important}
#r246Viewer{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;padding:0!important;margin:0!important;z-index:2147483000!important;background:#111827!important;display:block!important;overflow:hidden!important;box-sizing:border-box!important;isolation:isolate}
#r246Viewer .r246-viewer-panel{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;min-height:0!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-sizing:border-box!important;background:#111827!important;color:#f3f6fc!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr) auto!important;gap:0!important;overflow:hidden!important;isolation:isolate}
#r246Viewer .r246-viewer-heading{grid-column:1;grid-row:1;box-sizing:border-box;display:flex!important;gap:.55rem;align-items:center;min-width:0;min-height:62px;padding:.65rem 1rem;border-bottom:1px solid #354154;background:#151d2d;flex-wrap:wrap;position:relative;z-index:1}
#r246Viewer .r246-viewer-heading h2{font-size:clamp(.94rem,1.5vw,1.2rem);line-height:1.3;margin:0;flex:1 1 320px;min-width:0;overflow-wrap:anywhere}
#r246Viewer .r246-viewer-heading a{color:#dceaff;text-decoration:underline;flex:0 1 auto}
#r246Viewer .r246-viewer-heading button{min-height:40px;white-space:nowrap;flex:0 0 auto;max-width:100%;padding:.45rem .7rem}
#r246Viewer .r246-disclaimer{grid-column:1;grid-row:3;align-self:end;line-height:1.3;margin:0;padding:.45rem .75rem;background:#151d2d;border-top:1px solid #354154;color:#c8d3e4;font-size:.72rem;opacity:1}
#r246Viewer #r247Hub,#r246Viewer #r247Stage{grid-column:1;grid-row:2;min-height:0!important;min-width:0!important;max-height:none!important;height:auto!important;align-self:stretch;overflow-x:hidden;box-sizing:border-box}
#r247Hub{display:flex;flex-direction:column;gap:1rem;padding:1.1rem;overflow-y:auto!important;overscroll-behavior:contain;background:#111827;color:#f4f7fd}
.r247-hub-intro{display:flex;gap:.4rem 1.2rem;align-items:baseline;flex-wrap:wrap;line-height:1.5;max-width:100%}
.r247-hub-intro strong{font-size:1.04rem}.r247-hub-intro span{font-size:.83rem;opacity:.84}
.r247-hub-controls{position:relative;z-index:1;display:grid;grid-template-columns:minmax(150px,2fr) minmax(150px,.65fr) auto;align-items:center;gap:.65rem;min-width:0}
.r247-hub-controls input,.r247-hub-controls select{width:100%;min-width:0;min-height:42px;box-sizing:border-box;border:1px solid #8090aa;border-radius:.6rem;padding:.55rem .7rem;background:#fff;color:#141b28;font-size:.9rem}
.r247-hub-controls button{min-height:42px;white-space:nowrap}
#r247HubStatus{margin:0;font-size:.82rem;line-height:1.45;min-height:1.1em;color:#d4e1f3}
#r247HubList{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:.75rem;align-content:start}
#r247HubList .r246-event{display:flex!important;flex-direction:column;align-items:stretch;justify-content:space-between;gap:.7rem;min-height:104px;min-width:0;padding:.85rem 1rem;border:1px solid #39465b;border-radius:.75rem;background:#1d283b;box-sizing:border-box;position:relative;overflow:hidden}
#r247HubList .r246-event strong{display:block;font-size:.96rem;line-height:1.35;overflow-wrap:anywhere}
#r247HubList .r246-event small{display:block;margin-top:.25rem;line-height:1.35;color:#c4d1e4;font-size:.8rem}
#r247HubList .r246-event-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}
#r247HubList .r246-event-actions button,#r247HubList .r246-event-actions a{display:inline-flex;align-items:center;min-height:38px;min-width:0;padding:.45rem .65rem;box-sizing:border-box;font-size:.86rem;border-radius:.5rem}
#r247HubList .r246-event-actions a{border:1px solid #8899b8;color:#e0eafe;text-decoration:none}
.r247-browse-all{color:#dbeafe;align-self:flex-start;padding-bottom:.6rem}
body.r249-live-open #r246BroadcastHub{visibility:hidden!important}
@media(max-width:800px){#r247Hub{padding:.7rem;gap:.7rem}.r247-hub-controls{grid-template-columns:minmax(0,1fr) minmax(128px,.5fr)}.r247-hub-controls button{grid-column:1/-1;justify-self:stretch}}
@media(max-width:520px){#r246Viewer .r246-viewer-heading{padding:.5rem;gap:.35rem;min-height:52px}#r246Viewer .r246-viewer-heading h2{flex:1 0 100%;font-size:.98rem}#r246Viewer .r246-viewer-heading button{font-size:.81rem;padding:.4rem .5rem}.r247-hub-controls{grid-template-columns:1fr} .r247-hub-controls button{grid-column:1}#r247HubList{grid-template-columns:1fr}}

/* v250: aislamiento estricto. Ni el catalogo ni el visor pueden ocupar
   simultaneamente el area central, aunque otro CSS use display!important. */
#r246Viewer[data-ringo-view="game"] #r247Hub,
#r246Viewer[data-ringo-view="catalog"] #r247Stage,
#r246Viewer .r246-viewer-panel > #r247Hub[hidden],
#r246Viewer .r246-viewer-panel > #r247Stage[hidden] {
 display:none!important;visibility:hidden!important;pointer-events:none!important;
}

/* v253: estado de retransmisión dentro del acceso existente; no altera el visor. */
#r246OpenLive{white-space:normal;max-width:100%;overflow-wrap:anywhere}
#r253LiveStatus{display:inline-block;font-size:.72em;font-weight:700;padding:.1em .35em;border-radius:.3em;background:#334155;color:#f8fafc;line-height:1.35}
#r253LiveStatus[data-state="live"]{background:#166534;color:#fff}
#r253LiveStatus[data-state="none"],#r253LiveStatus[data-state="unknown"]{background:#334155;color:#f8fafc}
#r247HubList .r246-event small[data-broadcast-kind="active"]{color:#a7f3d0;font-weight:600}

/* v260: four controls, without overflow at intermediate widths. */
@media(min-width:1001px){.r247-hub-controls{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto}}
@media(min-width:521px) and (max-width:1000px){.r247-hub-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.r247-hub-controls button{grid-column:auto;white-space:normal}}

/* v262: standings are an independent, bounded section of the catalog. */
#r262Standings[hidden],#r262More[hidden]{display:none!important} #r262Standings{min-width:0;padding:.75rem;border:1px solid #39465b;border-radius:.6rem;background:#1d283b;color:#e0eafe;overflow-wrap:anywhere} .r262-head{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap} .r262-head h3{flex:1 1 100%;font-size:1rem;margin:.1rem 0} .r262-head button,#r262More{min-height:38px;white-space:normal} .r262-head a{color:#dbeafe} #r262Status{font-size:.83rem;line-height:1.4} .r262-table{max-height: min(45vh,360px);overflow:auto;min-width:0} .r262-table table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:.85rem} .r262-table th,.r262-table td{padding:.35rem;text-align:left;border-bottom:1px solid #39465b;overflow-wrap:anywhere} .r262-table th:first-child{width:15%} .r262-table th:nth-child(2){width:47%} .r262-table th:nth-child(3),.r262-table th:nth-child(4){width:19%} .r262-table th{position:sticky;top:0;background:#1d283b} #r262More{margin-top:.4rem}

/* v263 calendar */
#r263Calendar[hidden]{display:none!important} #r263Calendar{min-width:0;padding:.75rem;border:1px solid #39465b;border-radius:.6rem;background:#1d283b;color:#e0eafe;overflow-wrap:anywhere} #r263Status{font-size:.83rem;line-height:1.4} #r263Rounds{list-style:none;margin:0;padding:0;max-height:min(45vh,360px);overflow:auto} #r263Rounds li{display:flex;flex-direction:column;gap:.3rem;padding:.5rem 0;border-bottom:1px solid #39465b;min-width:0} #r263Rounds a{color:#dbeafe} #r263Rounds small{font-size:.82rem;color:#dbeafe}


/* v263 mobile4: four uniform controls, including dynamically inserted keyboard.
   Only the main header at mobile/tablet widths; dropdown remains unclipped. */
@media (max-width: 1100px) {
 body .app-shell > header.topbar {
  display:grid!important; grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto!important; grid-auto-rows:auto!important;
  gap:6px!important; align-items:center!important; justify-items:stretch!important;
  min-width:0!important; width:100%!important; max-width:100%!important;
  min-height:0!important; height:auto!important; box-sizing:border-box!important;
  position:relative!important; inset:auto!important; padding:6px 8px!important;
  overflow:visible!important;
 }
 body .app-shell > header.topbar > div:first-child {
  grid-column:1!important; grid-row:1!important; position:static!important;
  min-width:0!important; width:auto!important; max-width:100%!important;
  margin:0!important; text-align:center!important; transform:none!important;
 }
 body .app-shell > header.topbar > div:first-child h1 {
  margin:0!important; font-size:clamp(1rem,3.6vw,1.2rem)!important;
  line-height:1.2!important; white-space:normal!important; overflow-wrap:normal!important;
 }
 body .app-shell > header.topbar > .topbar-actions {
  grid-column:1!important; grid-row:2!important; position:relative!important;
  display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:1fr!important; align-items:stretch!important; justify-items:stretch!important;
  gap:6px!important; margin:0!important; padding:0!important; min-width:0!important;
  width:100%!important; max-width:100%!important; box-sizing:border-box!important;
  transform:none!important; inset:auto!important; overflow:visible!important;
 }
 body .app-shell > header.topbar > .topbar-actions > * {
  min-width:0!important; max-width:100%!important; box-sizing:border-box!important;
  grid-column:auto!important; grid-row:auto!important; margin:0!important;
 }
 body .app-shell > header.topbar > .topbar-actions > .main-menu-dropdown {
  position:relative!important; inset:auto!important; width:100%!important;
  height:100%!important; transform:none!important;
 }
 body .app-shell > header.topbar > .topbar-actions > button:not([hidden]):not(.hidden),
 body .app-shell > header.topbar > .topbar-actions > .main-menu-dropdown > summary {
  display:flex!important; align-items:center!important; justify-content:center!important;
  width:100%!important; min-width:0!important; max-width:100%!important;
  min-height:48px!important; height:100%!important; max-height:none!important;
  box-sizing:border-box!important; margin:0!important; padding:4px 6px!important;
  font-size:14px!important; font-weight:650!important; line-height:1.15!important;
  border:1px solid #4b5b73!important; border-radius:10px!important;
  background:#1e293b!important; color:#f8fafc!important; box-shadow:none!important;
  text-align:center!important; white-space:normal!important; list-style:none!important;
  word-break:normal!important; overflow-wrap:normal!important;
  position:relative!important; inset:auto!important; transform:none!important;
 }
 body .app-shell > header.topbar > .topbar-actions > .main-menu-dropdown > summary::-webkit-details-marker {display:none!important;}
 body .app-shell > header.topbar > .topbar-actions > .main-menu-dropdown > summary::marker {content:"";}
 body .app-shell > header.topbar > .topbar-actions > .main-menu-dropdown > summary,
 body .app-shell > header.topbar #ringoKeyboardHelpButton {font-size:21px!important;}
 body .app-shell > header.topbar > .topbar-actions > button:focus-visible,
 body .app-shell > header.topbar > .topbar-actions > .main-menu-dropdown > summary:focus-visible {outline:2px solid #93c5fd!important;outline-offset:2px!important;}
 body .app-shell > header.topbar > .topbar-actions > .main-menu-dropdown[open] > summary {border-color:#93c5fd!important;}
 body .app-shell > header.topbar > .top-review-viewer {
  grid-column:1!important; grid-row:3!important; min-width:0!important;
  width:100%!important; max-width:100%!important; box-sizing:border-box!important;
  margin:0!important; position:relative!important; inset:auto!important; transform:none!important;
 }
 body .app-shell > header.topbar > .topbar-actions > #r246OpenLive {
  flex-direction:column!important; gap:3px!important; grid-column:auto!important;
 }
 body .app-shell > header.topbar #r253LiveStatus {
  display:block!important; max-width:100%!important; min-width:0!important;
  white-space:normal!important; word-break:normal!important; overflow-wrap:normal!important;
  line-height:1.15!important; font-size:10px!important; box-sizing:border-box!important;
 }
}
@media (min-width: 700px) and (max-width: 1100px) {
 body .app-shell > header.topbar > .topbar-actions {
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
 }
}
