/* UG / Taste refinement. Public product only; data and admin behavior unchanged. */
:root,body[data-game]{
 --color-bg:#111419;--color-bg-elevated:#181c23;--color-surface:#191e26;
 --color-surface-raised:#222833;--color-surface-soft:#262d38;
 --color-border:#303743;--color-border-strong:#505a6a;
 --color-text:#edf0f4;--color-text-secondary:#c1c8d2;--color-text-muted:#a0a9b7;
 --color-accent:#efa48a;--color-accent-soft:#392b28;--color-highlight:#efa48a;
 --ug-text:#edf0f4;--ug-muted:#a0a9b7;--ug-edge:#303743;--ug-surface:#191e26;--ug-field:#141920;
 --paper:#191e26;--paper-soft:#222833;--paper-ink:#edf0f4;--paper-sub:#a0a9b7;
 --v5-paper:#191e26;--v5-paper-bright:#222833;--v5-paper-soft:#222833;
 --v5-ink:#edf0f4;--v5-sub:#a0a9b7;--v5-line:#303743;--v5-teal:#d1d8e3;--v5-orange:#efa48a;
 --md-paper:#191e26;--md-paper-alt:#1c222b;--md-ink:#edf0f4;--md-muted:#a0a9b7;
 --md-rule:#303743;--md-teal:#a9bfd6;--md-coral:#efa48a;color-scheme:dark;
}
body{font-family:"Segoe UI","PingFang SC","Microsoft YaHei UI",sans-serif;letter-spacing:0;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:inherit}
h1,h2,h3{font-family:inherit;font-weight:600;letter-spacing:-.025em}
button,a,summary{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #efa48a!important;outline-offset:3px}
.topbar{background:#111419;border-color:#303743!important;backdrop-filter:none}
.brand strong{font-family:inherit;letter-spacing:.02em;font-weight:600}
.brand small{color:#a0a9b7;font-size:10px}
.auth-actions button{border-color:#303743;background:#191e26;color:#edf0f4}
.auth-actions button.primary{background:#efa48a!important;border-color:#efa48a!important;color:#211b19!important}
.mobile-nav{background:#111419!important;border-color:#303743!important;backdrop-filter:none;box-shadow:none}
.mobile-nav .nav-button{font-size:13px;color:#a0a9b7!important;border-color:transparent!important;border-radius:6px}
.mobile-nav .nav-button:hover{color:#edf0f4!important;background:#222833!important}
.mobile-nav .nav-button.active{color:#edf0f4!important;background:transparent!important;box-shadow:inset 0 -2px #efa48a!important;border-color:transparent!important;border-radius:0}
.mobile-nav .nav-icon{width:18px!important;height:18px!important;stroke-width:1.7!important}
#app-main{padding-top:26px;scrollbar-color:#414b5a #111419}
#app-main>.page{max-width:1120px}
.page>.page-intro,.page:not(#schedule-page)>.page-intro{min-height:86px;margin-bottom:22px;padding-bottom:18px;border-color:#303743}
.page>.page-intro .eyebrow{display:none}
.page>.page-intro h1,.page:not(#schedule-page)>.page-intro h1{font-size:32px;line-height:1.25;letter-spacing:-.035em;font-weight:600}
.page>.page-intro>p{color:#a0a9b7;font-size:13px}
.game-switch,.game-filter{background:#191e26;border-color:#303743}
.game-switch button.active,.game-filter button.active{color:#edf0f4;background:#303743;box-shadow:none}
.status-tabs{border-color:#303743}
.status-tabs button{color:#a0a9b7}
.status-tabs button.active{color:#edf0f4;box-shadow:inset 0 -2px #efa48a}
.empty,.empty-state{background:#191e26;border-color:#303743;color:#a0a9b7}
.empty strong,.empty-state strong{color:#edf0f4}

/* Real editorial images stay; the surrounding surface follows the product. */
#home-page .news-filter{background:#191e26;border-color:#303743}
#home-page .news-filter button.active{background:#303743;color:#edf0f4}
#home-page .news-list{border-color:#303743;border-radius:12px;background:#191e26}
#home-page .news-list .news-card{background:#191e26;color:#edf0f4}
#home-page .news-list .news-card.news-lead{background:#222833}
#home-page .news-list .news-card:not(.news-lead):hover{background:#202630}
#home-page .news-card p,#home-page .news-card .news-teaser,#home-page .news-meta,#home-page .news-meta .news-attribution{color:#a9b2c0}
#home-page .news-meta .news-game{color:#efa48a;font-weight:500}
#home-page .news-card h2{color:#edf0f4;font-weight:600;letter-spacing:-.02em}
#home-page .news-list .news-card.news-lead h2{font-size:30px;line-height:1.35}
#home-page .news-list .news-select:hover,#home-page .news-source:hover{color:#efa48a}
#home-page .news-list .news-source{color:#d1d8e3;font-weight:500}
#home-page .news-schedule-link{border-color:#414c5a;color:#d1d8e3}

/* Matchday comparison sheet with quieter controls. */
#schedule-page{--md-paper:#191e26;--md-paper-alt:#1c222b;--md-ink:#edf0f4;--md-muted:#a0a9b7;--md-rule:#303743;--md-teal:#a9bfd6;--md-coral:#efa48a}
#schedule-page .page-intro{border-color:#303743}
#schedule-page .page-intro h1{font-size:32px}
#schedule-page .game-switch{background:#191e26;border-color:#303743;padding:5px}
#schedule-page .game-switch button{color:#a0a9b7}
#schedule-page .game-switch button.active{background:#303743;color:#edf0f4}
#schedule-page .status-tabs{display:flex;gap:28px;border-bottom:1px solid #303743}
#schedule-page .status-tabs button{flex:none;padding:0 2px;border:0;border-radius:0;background:transparent;color:#a0a9b7;min-height:46px}
#schedule-page .status-tabs button.active{color:#edf0f4;box-shadow:inset 0 -2px #efa48a;background:transparent}
#schedule-page .status-tabs button b{background:#252d39;font-weight:500}
#schedule-page .schedule-list-heading h2{font-size:20px}
#schedule-page .schedule-list-heading span{color:#a0a9b7}
.matchday-group{border-color:#303743;border-radius:12px;box-shadow:none}
.matchday-group-head{background:#222833;padding-block:16px;min-height:52px}
.matchday-group-head strong{font-size:18px;letter-spacing:0;font-weight:600}
.matchday-group-head span{color:#a0a9b7}
.matchday-row:hover{background:#222833}
.matchday-time{background:#151a21}
.matchday-time time{color:#edf0f4;font-family:inherit;font-size:23px;font-weight:600;letter-spacing:-.03em}
.matchday-time span{color:#a0a9b7;font-weight:400}
.matchday-meta span{font-weight:400}
.matchday-meta small{border-color:#414b59}
.matchday-team strong{font-size:16px;font-weight:600;letter-spacing:0}
.matchday-prob strong{font-family:inherit;font-weight:500}
.matchday-prob i{height:4px;background:linear-gradient(90deg,#8ca9c4 0 var(--p),#ce8b73 var(--p))}
.matchday-row .favorite-button{color:#a0a9b7}
.matchday-row .favorite-button:hover,.matchday-row .favorite-button.active{background:#352923;color:#efa48a}
.matchday-row .schedule-predict .predict-label,.matchday-row .schedule-predict>span:not(.predict-label){color:#a0a9b7;font-weight:400}
.matchday-row .schedule-predict button{background:#252d39;border-color:#414b59;color:#d1d8e3;font-weight:500;border-radius:6px}
.matchday-row .schedule-predict button:hover{background:#303947;border-color:#657285}
.matchday-row .schedule-predict button.selected{background:#20372e;border-color:#42775f;color:#b4e4cb}
.matchday-row .schedule-predict button i{color:#7ecaa4}

/* Compact fixture masthead; actual score and roster take precedence. */
#detail-page .detail-hero{background:#191e26;border-color:#303743;border-radius:12px;padding:0}
#detail-page .detail-hero .match-meta{margin:0;background:#151a21;border-color:#303743;padding:12px 18px}
#detail-page .detail-hero .match-meta strong{font-weight:500;color:#d1d8e3;font-size:12px}
#detail-page .detail-hero .match-meta span{color:#a0a9b7;padding-right:36px}
#detail-page .detail-hero .teams{padding:22px 26px;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr)}
#detail-page .detail-hero .team{display:flex;align-items:center;flex-direction:row;justify-content:flex-start;gap:16px;text-align:left}
#detail-page .detail-hero .team:last-child{flex-direction:row-reverse}
#detail-page .detail-hero .team img{width:56px;height:56px;padding:5px;border-color:#b4bdc7;border-radius:8px}
#detail-page .detail-hero .team span{font-size:21px;font-weight:600;line-height:1.35}
#detail-page .detail-hero .versus{background:none;color:#747f90;font-size:12px;font-weight:500}
#detail-page .detail-hero .detail-score{font-size:32px;font-weight:600;letter-spacing:-.02em;color:#edf0f4}
#detail-page .detail-probability{margin:0 18px 18px;padding:12px 0 0;border-radius:0;border-top:1px solid #303743;background:none}
#detail-page .probability{height:4px}
#detail-page .probability-labels{font-size:12px;margin-top:8px;color:#c1c8d2}
#detail-page .confidence-row{font-size:11px;color:#a0a9b7;margin-top:10px}
#detail-page .confidence-row span{color:#a0a9b7}
#detail-page .analysis-card{border-color:#303743;border-radius:12px;padding:24px}
#detail-page .analysis-card h2{font-size:20px;font-weight:600}
#detail-page .analysis-card .eyebrow{color:#a0a9b7;letter-spacing:.04em;font-weight:400}
#detail-page .module-polymarket{background:#191e26}
#detail-page .module-polymarket .reference-value{color:#efa48a}
#detail-page .form-side{background:#151a21;border-color:#303743}
#detail-page .form-head>b{color:#edf0f4;font-weight:500}
#detail-page .team-profile-hero,#detail-page .map-pool-card{background:#191e26;border-color:#303743}
#detail-page .history-result{background:none;color:#edf0f4;padding:0 18px 18px}

/* Supporting pages use the same surfaces, not separate themes. */
#library-page .library-search,#library-results.library-grid{border-color:#303743;border-radius:10px}
#library-page .library-search input::placeholder{color:#a0a9b7}
#library-page .game-filter button,#ranking-page .game-filter button{background:#191e26;border-color:#303743;color:#a0a9b7}
#library-page .game-filter button.active,#ranking-page .game-filter button.active{background:#303743;border-color:#505a6a;color:#edf0f4}
#library-page .team-rank span{font-family:inherit;font-weight:500}
#library-page .team-entry .team-win-gauge:after{background:linear-gradient(90deg,#7ba791 var(--win-rate),#303743 var(--win-rate))}
#ranking-page .ranking-lead,#ranking-page .ranking-table-head{background:#222833;border-color:#303743}
#ranking-page .ranking-lead span,#ranking-page .ranking-lead p{color:#a0a9b7;letter-spacing:0}
#ranking-page .ranking-entry.is-me{background:#252d39}
#ranking-page .ranking-place{background:#252d39}
#ranking-list.ranking-list{border-color:#303743}
#mine-page .profile-hero{background:#191e26;border-color:#303743}
#mine-page .profile-stats{border-color:#303743;background:#303743}
#mine-page .profile-stats .stat,#mine-page .profile-stats .stat.featured{background:#151a21}
#mine-page .account-panel,#mine-page .wallet-panel,#mine-page .expert-center{border-color:#303743}
#mine-page .wallet-top,#mine-page .wallet-points{background:#222833}
#mine-page :is(.nickname-form input,.expert-form input,.expert-form textarea,.expert-form select){background:#141920;border-color:#414b59;color:#edf0f4}
#mine-page #prediction-list .match-card{background:#191e26}
#favorites-page #favorite-list .matchday-row{border-color:#303743}
#auth-page.auth-dialog{border-color:#303743;border-radius:12px;box-shadow:none}
#auth-page input{background:#141920;border-color:#414b59;color:#edf0f4;min-height:46px}
#auth-page .auth-close{background:#222833;border-color:#414b59;color:#edf0f4}
#auth-page .auth-submit{background:#efa48a;color:#211b19;font-weight:600;min-height:46px}
.site-footer{border-color:#303743;color:#a0a9b7;background:transparent}

@media(min-width:1100px){
 .app-shell{grid-template-rows:72px 0 minmax(0,1fr)!important}
 .topbar{height:72px!important;padding-inline:32px!important}
 .mobile-nav{grid-row:1!important;width:min(700px,calc(100% - 420px))!important;min-height:72px!important;padding:0!important;margin:0 auto!important;border:0!important;background:transparent!important;z-index:21;gap:6px}
 .mobile-nav .nav-button{min-width:0;flex:1;min-height:44px;padding:0 12px}
}
@media(max-width:700px){
 #app-main{padding:18px 14px 28px}
 .mobile-nav .nav-button{font-size:11px;gap:4px}
 .page>.page-intro,.page:not(#schedule-page)>.page-intro{min-height:0;margin-bottom:18px}
 .page>.page-intro h1,.page:not(#schedule-page)>.page-intro h1,#schedule-page .page-intro h1{font-size:28px}
 #home-page .news-list .news-card.news-lead h2{font-size:24px}
 #detail-page .detail-hero .teams{padding:18px 12px;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr)}
 #detail-page .detail-hero .team,#detail-page .detail-hero .team:last-child{flex-direction:column;gap:9px;text-align:center}
 #detail-page .detail-hero .team span{font-size:15px}
 #detail-page .detail-hero .team img{width:48px;height:48px}
 #detail-page .detail-hero .detail-score{font-size:22px}
 #detail-page .detail-hero .match-meta{padding:11px 13px;gap:6px;flex-wrap:wrap}
 #detail-page .analysis-card{padding:18px 16px}
 #schedule-page .status-tabs{gap:20px;justify-content:space-between}
 #schedule-page .status-tabs button{font-size:12px}
 .matchday-time{background:transparent}
 .matchday-team strong{font-size:13px}
}
@media(prefers-reduced-motion:reduce){button,a,input,select,textarea{transition:none}}
