/* BATYR PRO 9 · Light editorial, designed for real phones.
   Overrides the historic dark styles, keeps existing app markup and functions. */
:root{color-scheme:light;--ink:#201e1b;--ink-soft:#6d6a65;--hair:#e9e5de;--paper:#fff;--canvas:#f7f6f3;--gold:#c99b45;--gold-dark:#9d732b;--gold-soft:#fff1d1;--surface:#fdfcf9;--shadow:0 9px 30px rgba(35,28,14,.045);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif!important;background:var(--canvas)!important;color:var(--ink)!important}
*{-webkit-tap-highlight-color:transparent}
html{background:var(--canvas);scroll-behavior:smooth}
body{background:radial-gradient(85vw 360px at 50% -180px,#f6e7ca8f,transparent 85%),var(--canvas)!important;color:var(--ink)!important;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #b4883b!important;outline-offset:3px}
a,.link-muted{color:var(--gold-dark)!important}
.wrap{max-width:1010px;padding:20px 18px 128px}
.top{padding:7px 0 18px;border-color:var(--hair);margin:0 0 20px;align-items:center}
.brand{gap:11px;min-width:0}.logo-img{width:49px;height:49px;border:1px solid #e4c88b;box-shadow:0 4px 15px #a77f301a;flex:none;object-fit:cover}
.eyebrow{font-size:9px;letter-spacing:1.55px;color:var(--gold-dark);font-weight:760}
.brand h1{font-size:clamp(14px,3.8vw,21px);color:var(--ink);letter-spacing:-.55px;font-weight:840;white-space:nowrap}
.brand h1 span{color:var(--gold-dark)!important}
.badge{background:#f5efe1;border:1px solid #efe4cc;color:#765b2f;border-radius:100px;padding:6px 12px;font-size:11px;font-weight:800}
.badge.good{background:#edf6ef;color:#267044;border-color:#d5e7d8}
.badge.warn{background:#fff5df;color:#895f1c;border-color:#edd5a3}
.panel{background:var(--paper);border:1px solid var(--hair);border-radius:21px;box-shadow:var(--shadow);padding:19px;margin:0 0 14px;color:var(--ink)}
.panel h2,.section{color:var(--ink);font-weight:780;letter-spacing:-.45px}.panel h2{font-size:19px}
.hero{background:linear-gradient(145deg,#fff,#fffaf1)!important;border:1px solid var(--hair);box-shadow:var(--shadow),inset 0 1px #fff;border-radius:22px;padding:22px;color:var(--ink)}
.hero::after{display:none!important}.hero h2{color:var(--ink);text-shadow:none;font-size:27px;letter-spacing:-1px;font-weight:810}.hero p{color:var(--ink-soft);font-size:13px}
.label{color:var(--gold-dark);font-size:10px;letter-spacing:1.25px;font-weight:860}
.muted{color:var(--ink-soft)!important}.small,.muted-small,.sub{color:#77736e!important}.muted-small{font-size:12px}.small{font-size:11px}
.btn{border-radius:13px;background:linear-gradient(120deg,#f5dd9f,#e5b955)!important;color:#332716!important;border:1px solid #e1ba68;box-shadow:none;font-weight:810;min-height:43px;padding:11px 16px;transition:transform .14s,filter .14s,box-shadow .14s}
.btn:active{transform:scale(.976)}.btn:hover{filter:brightness(.985)}
.btn.sec{background:#f3f2ef!important;border-color:#ebe7df;color:var(--ink)!important}
.btn.out{background:#fff!important;border:1px solid #e6e1d8;color:#4c4943!important}
.btn.red{background:#fff0ef!important;border-color:#f3d7d3;color:#ac4b4e!important}
.btn.sm{font-size:12px;min-height:35px;padding:8px 11px;border-radius:10px}
.btn:disabled{opacity:.45}
.notice{background:#fff6e4;color:#6d552f;border-left-color:#d3a144;border-radius:13px}
.notice.ok{background:#f0f8f0;color:#28613a;border-left-color:#5fa77a}.notice.err{background:#fff0ed;color:#9a4343;border-left-color:#c96668}
.member,.fixture{background:var(--surface)!important;border:1px solid var(--hair)!important;border-radius:13px;color:var(--ink);box-shadow:none;min-height:61px}
.member:hover,.fixture:hover{border-color:#dcc59e!important}
.metric{background:#fbfaf8!important;border:1px solid #eeeae4!important;border-radius:15px;padding:13px 12px;box-shadow:none}
.metric b{color:var(--ink)!important;font-weight:850;letter-spacing:-.6px}
.metric span{color:#73706c!important;font-size:11px}
.empty{background:#faf9f7;border:1px dashed #dad4c9;color:#77716a;border-radius:15px;padding:24px 15px}
.field{color:#58544d;font-size:12px}
.field input,.field select,.field textarea,.search,.squad-select,.rating-num{border-color:#dfd9ce!important;background:#fff!important;color:var(--ink)!important;border-radius:12px;box-shadow:0 1px 2px #1b150a06;min-height:44px;font-size:14px}
.field input::placeholder,.search::placeholder{color:#a19a90}
.field input:focus,.field select:focus,.field textarea:focus,.search:focus{border-color:#cda252!important;box-shadow:0 0 0 3px #e7c88635}
.field select option{background:#fff;color:#201e1b}
.squad-player,.squad-summary{background:#fbfaf8;border:1px solid #e9e4da;border-radius:13px}
.squad-player small,.squad-summary span,.sat-head span{color:#79746b}
.squad-summary{border-top:3px solid var(--accent)}
.squad-summary strong,.squad-player b{color:var(--ink)}
.team{background:#fbfaf8;border:1px solid #eae5dc;border-top:4px solid var(--tc);border-radius:13px;color:var(--ink)}.team small{color:#827b72}
.standings{font-size:12px;color:var(--ink);font-variant-numeric:tabular-nums}
.standings th{color:#7b766d!important;font-weight:720;background:#fbfaf8}
.standings th,.standings td{border-color:#eeeae2!important;padding:12px 5px}
.standings td:first-child{font-weight:730}.standings .score,.score{color:#b17e2a!important}
.pill{background:#f3efe8;color:#6d6152}.line{background:#ede7de}
.flat{color:#96712e}.data-list label{border-bottom-color:#ece7dc}
.media-head{background:linear-gradient(115deg,#fffffffa,#fff7e9df),url('batyr-stadium.webp') right/cover;border:1px solid var(--hair);border-radius:22px;box-shadow:var(--shadow);padding:20px;color:var(--ink)}
.media-head h2{color:var(--ink);font-size:25px;font-weight:820;letter-spacing:-1px}
.media-head p{color:#6f6558}.media-filters .chip{border-color:#e8e1d5;background:#f6f4f0;color:#5f5950;min-height:37px;font-weight:700}
.media-filters .chip.selected{border-color:#d9b46b;background:#f6e2b0;color:#382c17}
.media-tile{border:1px solid #e9e3d9;background:#fff;border-radius:16px;box-shadow:var(--shadow)}
.media-info{padding:12px}.media-info b{color:#28231f;font-size:13px}.media-meta{color:#8b8378}
.media-tools button{border-color:#e6e0d8;color:#6b5129;background:#faf8f4;border-radius:9px}.media-tools button:active{background:#f7e4bd}
.media-empty{background:#faf9f6;border-color:#ded4c4}.media-upload-hint{color:#7b746c}.media-gallery-meta{color:#78726a}
.media-featured{background:#fff1ce;border:1px solid #ead6a3;color:#885f23}
dialog{background:#fff;color:var(--ink);border:1px solid #e6dfd3;border-radius:24px;box-shadow:0 24px 90px #12121238;padding:23px}
dialog::backdrop{background:#14120e82;backdrop-filter:blur(5px)}dialog h2{color:var(--ink);font-weight:810}
.toast{background:#293b2f;color:#fff;border-color:#6e9a72}.toast.err{background:#7e363d;border-color:#a75961}
.loading{color:#847d73}.foot{color:#999086}
/* Bottom navigation: never hide available sections, but keep the surface quiet. */
.tabbar{background:#fffffff5;backdrop-filter:blur(25px);-webkit-backdrop-filter:blur(25px);border-top:1px solid #e8e4dd;box-shadow:0 -5px 28px #22222208;gap:3px;padding:8px 7px max(10px,env(safe-area-inset-bottom))}
.tabbar button{min-width:0;min-height:52px;background:transparent;color:#878078;font-size:10px;font-weight:680;padding:7px 2px;border-radius:13px;line-height:1.2;gap:3px;transition:background .2s,color .2s}
.tabbar button.active{background:#f8edce;color:#846018}
.tabbar .nav-icon{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;display:block;flex:none}
.tabbar button.active .nav-icon{stroke-width:2.1}
.tabbar button:active{transform:scale(.96)}
@media(min-width:700px){.tabbar{width:min(710px,calc(100% - 32px));bottom:15px;left:50%;transform:translateX(-50%);border:1px solid var(--hair);border-radius:23px;padding:8px;box-shadow:0 14px 45px #30251612}}
/* Clean photo stories on home. Overlays stay dark for readable image captions. */
.bp-stories{margin-bottom:15px}.bp-stories-header{margin:0 1px 11px;align-items:end}.bp-stories-kicker{color:#a67931;letter-spacing:1.8px}.bp-stories-kicker:before{background:#cda451;box-shadow:0 0 0 3px #d2af6c24}
.bp-stories-title{color:var(--ink);font-size:26px;letter-spacing:-1px;font-weight:830}
.bp-stories-all{background:#fff;border:1px solid #ece4d6;color:#80602c;border-radius:100px;padding:8px 13px;font-size:11px;min-height:36px}
.bp-stories-frame{border-radius:22px;box-shadow:0 12px 27px #342d2421;outline:1px solid #f2ede3;max-height:390px}
.bp-stories-track{height:clamp(242px,48vw,390px)}
.bp-story-visual{filter:contrast(1.045) saturate(1.08)}
.bp-story-glass{font-size:9px;background:#1a1a1980;border-color:#ffffff50}
.bp-story-dot{background:#e1dacf}.bp-story-dot::after{background:#b98629}.bp-story-hint{color:#a49a8d}.bp-story-hint strong{color:#9d7838}
.bp-story-heading{font-weight:810;letter-spacing:-1.2px}.bp-story-meta{color:#eee5d7}
/* New home blocks */
.home-next{background:#fff;border:1px solid var(--hair);border-radius:22px;padding:19px 18px 17px;box-shadow:var(--shadow);margin:0 0 12px}
.home-next .home-section-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.home-mini-kicker{font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:#a8792e;font-size:10px}
.home-next h2{font-size:clamp(21px,5.5vw,30px);margin:6px 0 6px;letter-spacing:-1.05px;font-weight:840;line-height:1.16;color:var(--ink)}
.home-date{font-size:11px;color:#a17a3c;font-weight:780;white-space:nowrap}
.home-next-meta{display:flex;flex-wrap:wrap;gap:8px 17px;color:#77716a;font-size:12px;margin:8px 0 14px}.home-next-meta span{display:flex;align-items:center;gap:5px}
.home-next .btn{min-height:42px}.home-next .home-status{font-size:11px}
.home-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px}
.home-metrics .metric{padding:14px 11px 12px;background:#fff!important;border:1px solid var(--hair)!important;box-shadow:var(--shadow)}
.home-metrics .metric b{font-size:27px;line-height:1.2;font-weight:830;color:#28231b!important}.home-metrics .metric span{display:block;margin-top:5px;font-size:11px;color:#817a72!important}
.home-league-feature{position:relative;min-height:135px;overflow:hidden;border-radius:22px;background:#161513 url('batyr-stadium.webp') 80% 55%/cover;margin:0 0 15px;border:1px solid #41382930;box-shadow:0 10px 24px #251a1021}
.home-league-feature:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#161411ee,#161411bf 55%,#17141126)}
.home-league-feature>div{position:relative;z-index:1;padding:21px 20px;color:#fff}.home-league-feature strong{display:block;font-size:19px;letter-spacing:-.45px}.home-league-feature span{color:#f4dca8;font-size:11px;letter-spacing:.5px}
.home-league-feature .league-cta{position:absolute;right:18px;bottom:20px;z-index:2;background:#edc675;color:#302013;border:0;border-radius:50%;width:44px;height:44px;display:grid;place-items:center;font-size:22px}
.home-section-title{font-size:21px;letter-spacing:-.8px;margin:17px 1px 12px;font-weight:840;color:var(--ink)}
.home-quick-row{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0 0 12px}
.home-quick{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 13px;background:#fff;border:1px solid var(--hair);border-radius:16px;color:var(--ink);font-weight:740;text-align:left;min-height:62px}
.home-quick .home-quick-ico{font-size:21px}.home-quick .quick-arr{color:#ae8747}
.home-data-panel{margin-top:0}
.home-data-panel .standings{min-width:270px}
.home-minor-actions{justify-content:flex-end}
/* Comfortable league roster / dashboard on narrow screens */
@media(max-width:640px){.wrap{padding:14px 13px 123px}.top{padding:5px 1px 14px;margin-bottom:16px}.brand h1{font-size:16px}.eyebrow{font-size:8px;letter-spacing:1.1px}.logo-img{width:44px;height:44px}.panel{padding:15px}.hero{padding:17px}.grid2{grid-template-columns:1fr}.team{padding:13px}.media-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.media-head h2{font-size:24px}.bp-stories-track{height:clamp(210px,60vw,275px)}.bp-stories-title{font-size:23px}.bp-stories-frame{border-radius:19px}.bp-stories-header{margin-bottom:9px}.bp-story-inner{padding:13px 15px 18px}.bp-story-heading{font-size:clamp(24px,7.1vw,34px)}.bp-story-subtitle{font-size:9px}.home-league-feature{min-height:125px}.home-metrics .metric b{font-size:25px}.field input,.field select,.field textarea,.search{font-size:16px}.tabbar button{font-size:9px;min-height:53px}.tabbar .nav-icon{width:20px;height:20px}}
@media(max-width:360px){.brand h1{font-size:14px}.logo-img{width:40px;height:40px}.home-next{padding:15px}.home-next-meta{font-size:11px}.home-quick-row{gap:7px}.home-quick{font-size:12px;padding:13px 10px}.tabbar button{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Navigation captions (older theme styled every span as an emoji). */
.tabbar button span{display:block;font-size:10px!important;line-height:1.12;font-weight:720;letter-spacing:0;max-width:100%;text-align:center;white-space:nowrap}
.tabbar button{overflow:hidden;flex:1 1 0!important;max-width:170px;justify-content:center;gap:5px}
.tabbar .nav-icon{display:block!important;margin:0 auto;flex:none}
@media(max-width:360px){.tabbar button span{font-size:9px!important}}
