/* Run to Cup 3.9.2 — complete monochrome UI refresh + centered animated menu */
:root{
  --rtc-bg:#080a0c;
  --rtc-bg-2:#0d1013;
  --rtc-surface:#12161a;
  --rtc-surface-2:#181d22;
  --rtc-surface-3:#20262c;
  --rtc-line:#313941;
  --rtc-line-strong:#69737c;
  --rtc-text:#f5f7f8;
  --rtc-muted:#929ba4;
  --rtc-accent:#eef2f5;
  --rtc-accent-strong:#ffffff;
  --rtc-on-accent:#090b0d;
  --rtc-danger:#ff727c;
  --rtc-success:#55d99a;
  --rtc-warning:#ffc967;
  --rtc-shadow:0 18px 52px rgba(0,0,0,.30);
}
html[data-theme="light"]{
  --rtc-bg:#eef1f3;
  --rtc-bg-2:#e6eaed;
  --rtc-surface:#ffffff;
  --rtc-surface-2:#f5f7f8;
  --rtc-surface-3:#e9edf0;
  --rtc-line:#cbd2d8;
  --rtc-line-strong:#7d8790;
  --rtc-text:#111417;
  --rtc-muted:#626c75;
  --rtc-accent:#20262b;
  --rtc-accent-strong:#0b0e10;
  --rtc-on-accent:#ffffff;
  --rtc-shadow:0 14px 38px rgba(29,38,45,.10);
}
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="light"]{color-scheme:light}

/* Global reset of the inherited PazuTurnuva yellow/brown visual language. */
body,
.app,.main,.panel{background:var(--rtc-bg)!important;color:var(--rtc-text)!important}
body{background:linear-gradient(180deg,var(--rtc-bg),var(--rtc-bg-2))!important}
h1,h2,h3,h4,h5,h6,strong,b,.title,.title h1,.title h2,.selection-head h2,.profile-title h2{color:var(--rtc-text)!important}
p,small,.muted,.title p,.empty,.fixture-top,.drawer-section36,.drawer-section38,.drawer-footer38>span{color:var(--rtc-muted)!important}

.card,.stat,.fixture,.tie,.row37,.player,.comment,.org-team-row,.live-control-score,.live-lineup-box,.live-note,.live-action,.live-public-stat,
.data-summary>div,.entity-option,.manage-hero,.manage-grid>*,.attendance-head37,.attendance-person37,.notify-list37 label,.kpis37>div,
.ad-slot37,.ad-preview37,.sponsor-chip37,.sponsor-strip37>a,.match-edit-box39,.registration-card36,.context-bar{
  background:var(--rtc-surface)!important;color:var(--rtc-text)!important;border-color:var(--rtc-line)!important;box-shadow:none!important
}
.card{box-shadow:var(--rtc-shadow)!important}
.card-head,.attendance-head37,.match-edit-head39{
  background:var(--rtc-surface-2)!important;color:var(--rtc-text)!important;border-color:var(--rtc-line)!important
}
.card-head h2,.card-head h3,.attendance-head37 strong,.match-edit-head39 h2{color:var(--rtc-text)!important}
.context-bar{background:var(--rtc-surface)!important;border:1px solid var(--rtc-line)!important}
.context-bar b,.context-bar span{color:var(--rtc-text)!important}

.btn,.tab,.nav-icon,.hamburger36,.drawer-menu36 button{
  background:var(--rtc-surface-2)!important;color:var(--rtc-text)!important;border-color:var(--rtc-line)!important;box-shadow:none!important
}
.btn:hover,.tab:hover,.nav-icon:hover,.drawer-menu36 button:hover{background:var(--rtc-surface-3)!important;border-color:var(--rtc-line-strong)!important;color:var(--rtc-text)!important}
.btn.primary,.tab.active,.rtc-sport38.active,.drawer-menu36 button.active{
  background:var(--rtc-accent)!important;color:var(--rtc-on-accent)!important;border-color:var(--rtc-accent)!important;box-shadow:none!important
}
.btn.danger{color:var(--rtc-danger)!important}
.badge,.role-pill,.manage-format-pill,.search-kind{
  background:var(--rtc-surface-3)!important;color:var(--rtc-text)!important;border:1px solid var(--rtc-line)!important
}

input,select,textarea,.score,.field input,.field select,.field textarea,.form37 input,.form37 select,.form37 textarea,
.active-picker,.active-picker select,.global-search-box,.live-event-form input,.live-event-form select,.live-lineup-player select,
.dashboard-league-select,.lineup-picker37 select,#attTeam37,#h2hOpp37{
  background:var(--rtc-bg-2)!important;color:var(--rtc-text)!important;border-color:var(--rtc-line)!important
}
input::placeholder,textarea::placeholder{color:var(--rtc-muted)!important;opacity:.82}
.field label,.form37 label,.wide37 label{color:var(--rtc-muted)!important}
*:focus-visible{outline:2px solid var(--rtc-line-strong)!important;outline-offset:2px!important}

/* Tables and league/fixture areas */
table,thead,tbody,tr,th,td{color:var(--rtc-text)!important}
th{color:var(--rtc-muted)!important;background:transparent!important}
th,td{border-color:var(--rtc-line)!important}
.crest{background:var(--rtc-surface-3)!important;color:var(--rtc-text)!important}
.form .d{background:#554b28!important;color:#ffe38a!important}.form .w{background:#183d2d!important;color:#79eab4!important}.form .l{background:#4a2429!important;color:#ff9da5!important}
html[data-theme="light"] .form .d{background:#fff2c9!important;color:#67520f!important}
html[data-theme="light"] .form .w{background:#dff7ea!important;color:#17663f!important}
html[data-theme="light"] .form .l{background:#fde3e6!important;color:#8c2430!important}

/* Banner stays raw artwork. */
.rtc-banner38{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
.rtc-banner38:after{display:none!important}.rtc-banner38 img{transform:none!important;filter:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.rtc-banner38:hover img,.rtc-banner38:active img{transform:none!important;filter:none!important}

/* Search remains centered and compact. */
.rtc-search-zone38{gap:11px!important;margin-bottom:18px!important}
.rtc-search-zone38 .global-search{width:min(700px,92vw)!important}
.rtc-search-zone38 .global-search-box{background:var(--rtc-surface)!important;border-color:var(--rtc-line)!important;box-shadow:none!important}

/* New sports/menu strip: Football, Basketball, MENU, Volleyball, Tennis. */
.rtc-sports38{display:grid!important;grid-template-columns:auto auto 48px auto auto;align-items:center;justify-content:center;gap:8px!important;width:100%}
.rtc-sport38{min-height:40px;padding:8px 14px!important;border-radius:999px!important;color:var(--rtc-muted)!important;background:transparent!important;border:1px solid transparent!important;transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease}
.rtc-sport38:hover{background:var(--rtc-surface)!important;color:var(--rtc-text)!important;border-color:var(--rtc-line)!important;transform:translateY(-1px)}
.rtc-sport38.active{background:var(--rtc-accent)!important;color:var(--rtc-on-accent)!important;border-color:var(--rtc-accent)!important;transform:none!important}

/* The old navbar is no longer a visual row. Its controls live in the drawer. */
.global-nav{display:none!important}
#hamburgerBtn36.rtc-center-menu392{display:flex!important;position:relative!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;min-width:44px!important;margin:0!important;padding:0!important;border:1px solid var(--rtc-line)!important;border-radius:50%!important;background:var(--rtc-surface)!important;color:var(--rtc-text)!important;box-shadow:0 8px 22px rgba(0,0,0,.12)!important;transition:transform .28s cubic-bezier(.2,.8,.2,1),background .18s,border-color .18s!important;z-index:4}
#hamburgerBtn36.rtc-center-menu392:hover{background:var(--rtc-surface-2)!important;border-color:var(--rtc-line-strong)!important;transform:translateY(-1px) scale(1.03)!important}
#hamburgerBtn36.rtc-center-menu392.active{background:var(--rtc-accent)!important;border-color:var(--rtc-accent)!important;transform:rotate(90deg)!important}
.rtc-menu-lines392{position:relative;display:block;width:18px;height:14px}
.rtc-menu-lines392 i{position:absolute;left:0;width:18px;height:2px;border-radius:10px;background:currentColor;transition:top .25s cubic-bezier(.2,.8,.2,1),transform .25s cubic-bezier(.2,.8,.2,1),opacity .16s ease}
.rtc-menu-lines392 i:nth-child(1){top:0}.rtc-menu-lines392 i:nth-child(2){top:6px}.rtc-menu-lines392 i:nth-child(3){top:12px}
#hamburgerBtn36.active .rtc-menu-lines392 i:nth-child(1){top:6px;transform:rotate(45deg)}
#hamburgerBtn36.active .rtc-menu-lines392 i:nth-child(2){opacity:0;transform:scaleX(.2)}
#hamburgerBtn36.active .rtc-menu-lines392 i:nth-child(3){top:6px;transform:rotate(-45deg)}
#hamburgerBtn36.active .rtc-menu-lines392{color:var(--rtc-on-accent)!important}

/* Drawer gets a cleaner RTC treatment and a softer animated entrance. */
.drawer-backdrop36{background:rgba(3,5,7,.48)!important;backdrop-filter:blur(5px)!important;transition:opacity .28s ease,visibility .28s ease!important}
.drawer36{background:linear-gradient(180deg,var(--rtc-surface),var(--rtc-bg))!important;border-color:var(--rtc-line)!important;box-shadow:28px 0 80px rgba(0,0,0,.30)!important;transform:translateX(-108%) scale(.985)!important;opacity:.78;transition:transform .38s cubic-bezier(.16,1,.3,1),opacity .28s ease!important}
.drawer36.open{transform:translateX(0) scale(1)!important;opacity:1}
.drawer-head36{border-color:var(--rtc-line)!important;padding-bottom:14px!important}
.drawer-brand36 img{background:transparent!important;border:0!important;box-shadow:none!important}
.rtc-drawer-actions391 .nav-icon{background:var(--rtc-surface-2)!important;color:var(--rtc-text)!important;border-color:var(--rtc-line)!important}
.rtc-drawer-actions391 .nav-icon:hover{background:var(--rtc-surface-3)!important;border-color:var(--rtc-line-strong)!important}
#navUserBtn .rtc-account-label39{display:none!important}
#navUserBtn{width:38px!important;min-width:38px!important;padding:0!important}
.drawer-menu36>*{transform:translateX(-10px);opacity:0;transition:transform .28s cubic-bezier(.16,1,.3,1),opacity .22s ease}
.drawer36.open .drawer-menu36>*{transform:none;opacity:1}
.drawer36.open .drawer-menu36>*:nth-child(1){transition-delay:.035s}.drawer36.open .drawer-menu36>*:nth-child(2){transition-delay:.055s}.drawer36.open .drawer-menu36>*:nth-child(3){transition-delay:.075s}.drawer36.open .drawer-menu36>*:nth-child(4){transition-delay:.095s}.drawer36.open .drawer-menu36>*:nth-child(5){transition-delay:.115s}.drawer36.open .drawer-menu36>*:nth-child(n+6){transition-delay:.13s}
.drawer-footer38{border-color:var(--rtc-line)!important}.theme-toggle38{background:var(--rtc-surface-2)!important;border-color:var(--rtc-line)!important}.theme-toggle38 .theme-knob38{background:var(--rtc-accent)!important}.theme-toggle38[data-theme="dark"] .moon38,.theme-toggle38[data-theme="light"] .sun38{color:var(--rtc-on-accent)!important}

/* Account dropdown, alerts and registration CTA */
.account-menu{background:var(--rtc-surface)!important;color:var(--rtc-text)!important;border-color:var(--rtc-line)!important;box-shadow:var(--rtc-shadow)!important}
.account-role{border-color:var(--rtc-line)!important}.account-role span,.account-menu button{color:var(--rtc-text)!important}.account-menu button:hover{background:var(--rtc-surface-2)!important;color:var(--rtc-text)!important}
.registration-cta36,.drawer-register36{background:var(--rtc-accent)!important;color:var(--rtc-on-accent)!important;border-color:var(--rtc-accent)!important;box-shadow:none!important;animation:none!important}.registration-cta36:before{display:none!important}

/* Old gold/brown leftovers from context selectors, active cards and tournament controls. */
.active-picker,.entity-option,.selection-head,.manage-hero,.context-bar,.competition-format,.format-info{color:var(--rtc-text)!important}
.entity-option:hover{border-color:var(--rtc-line-strong)!important;background:var(--rtc-surface-2)!important}.entity-option-icon{background:var(--rtc-surface-3)!important;color:var(--rtc-text)!important}
.dashboard-league-select{background:var(--rtc-surface-2)!important;color:var(--rtc-text)!important;border-color:var(--rtc-line)!important}

/* Live list + editor fully theme-aware. */
.live-list-row39,.live-list-row,.live-list-team,.live-list-score{background:var(--rtc-surface)!important;color:var(--rtc-text)!important;border-color:var(--rtc-line)!important}
.live-list-team{background:transparent!important}.live-list-score strong{color:var(--rtc-text)!important}
.match-edit39{background:rgba(3,5,7,.65)!important}.match-edit-grid39 label{color:var(--rtc-muted)!important}

/* Non-football page remains intentionally minimal; centered menu disappears there. */
body.rtc-nonfootball39 #hamburgerBtn36{display:none!important}
body.rtc-nonfootball39 .rtc-sports38{grid-template-columns:auto auto auto auto!important}
body.rtc-nonfootball39 .sport-placeholder39{color:var(--rtc-muted)!important}
body.rtc-nonfootball39 .sport-placeholder39 strong{color:var(--rtc-text)!important}

/* Light theme hardening: no fixed dark text/backgrounds from legacy suites. */
html[data-theme="light"] .panel,html[data-theme="light"] .card,html[data-theme="light"] .card-head,html[data-theme="light"] .card-body,
html[data-theme="light"] .context-bar,html[data-theme="light"] .fixture,html[data-theme="light"] .stat,html[data-theme="light"] .row37,
html[data-theme="light"] .data-summary>div,html[data-theme="light"] .entity-option,html[data-theme="light"] .registration-card36,
html[data-theme="light"] .attendance-head37,html[data-theme="light"] .attendance-person37,html[data-theme="light"] .live-list-row39{
  background:var(--rtc-surface)!important;color:var(--rtc-text)!important;border-color:var(--rtc-line)!important
}
html[data-theme="light"] .card-head,html[data-theme="light"] .attendance-head37{background:var(--rtc-surface-2)!important}
html[data-theme="light"] .context-bar *,html[data-theme="light"] .card-head *,html[data-theme="light"] .live-list-row39 *,html[data-theme="light"] .row37 *{color:inherit}
html[data-theme="light"] .drawer36{background:linear-gradient(180deg,#fff,#eef1f3)!important}

@media(max-width:720px){
  .rtc-sports38{grid-template-columns:auto auto 42px auto auto;gap:3px!important}
  .rtc-sport38{padding:7px 8px!important;font-size:.76rem}
  #hamburgerBtn36.rtc-center-menu392{width:40px!important;height:40px!important;min-width:40px!important}
  .rtc-search-zone38{padding:0 4px!important}
}
@media(max-width:470px){
  .rtc-sports38{gap:1px!important}
  .rtc-sport38{padding:7px 6px!important;font-size:.7rem}
}
@media(prefers-reduced-motion:reduce){
  .drawer36,.drawer-backdrop36,.drawer-menu36>*,#hamburgerBtn36,.rtc-menu-lines392 i{transition:none!important}
}
