
/* FF INDIA — reference gaming-app skin (UI only; preserves PHP workflows) */
:root{
 --ua-bg:#f4f5fb;--ua-surface:#fff;--ua-surface-2:#f7f7fc;--ua-text:#17172b;--ua-muted:#62677d;
 --ua-line:#e2e4f0;--ua-primary:#5935e8;--ua-primary-2:#7b35ed;--ua-pink:#f02e91;
 --ua-shadow:0 12px 30px rgba(25,24,62,.10);--ua-shadow-lg:0 20px 48px rgba(67,39,145,.18);
}
html[data-theme="light"] body,html:not([data-theme="dark"]) body{
 background:radial-gradient(ellipse at 85% 5%,rgba(122,75,244,.09),transparent 32%),var(--ua-bg)!important;
 color:var(--ua-text)!important;
}
html[data-theme="dark"]{
 --ua-bg:#070a19;--ua-surface:#11162b;--ua-surface-2:#171d36;--ua-text:#f7f7ff;--ua-muted:#aab1c9;
 --ua-line:#293154;--ua-shadow:0 14px 34px rgba(0,0,0,.28);--ua-shadow-lg:0 22px 52px rgba(0,0,0,.42);
}
html[data-theme="dark"] body{background:radial-gradient(ellipse at 85% 5%,rgba(70,40,160,.18),transparent 34%),var(--ua-bg)!important;color:var(--ua-text)!important}
body{padding-bottom:12px}
.app-topbar{height:62px!important;padding:0 14px!important;background:rgba(12,14,34,.97)!important;color:#fff!important;border-bottom:1px solid rgba(135,111,255,.28)!important;box-shadow:0 8px 26px rgba(12,12,38,.18)!important}
.app-menu{background:#171c3b!important;border:1px solid #343b70!important;color:#fff!important;width:38px!important;height:38px!important}
.app-brand{color:#fff!important}.app-brand-mark{background:linear-gradient(135deg,#a84aff,#e22fbb)!important;color:#fff!important;box-shadow:0 0 18px rgba(177,66,255,.38)!important}
.app-brand b,.app-brand small{color:#fff!important}
.app-wallet-pill{background:linear-gradient(135deg,#281b75,#4a1ca0)!important;border:1px solid rgba(171,133,255,.4)!important;color:#fff!important;border-radius:20px!important;padding:8px 12px!important}
.container{max-width:1180px!important;padding:18px 14px 126px!important}
.home-slider{margin:8px 0 18px!important;border-radius:22px!important;border:1px solid rgba(113,89,255,.32)!important;box-shadow:0 12px 30px rgba(43,30,100,.16)!important}
.home-slider-track{aspect-ratio:16/5!important;min-height:130px!important}
.slide-caption{background:linear-gradient(transparent,rgba(4,5,18,.72))!important}
.dash-hero,.public-hero{border:1px solid rgba(255,255,255,.16)!important;border-radius:24px!important;padding:22px!important;background:linear-gradient(112deg,#4b28e7 0%,#843de8 56%,#ed3e9c 100%)!important;color:#fff!important;box-shadow:0 16px 38px rgba(94,47,203,.25)!important;overflow:hidden!important}
.dash-hero h1,.public-hero h1{color:#fff!important;font-size:clamp(23px,4vw,34px)!important}
.dash-hero .eyebrow,.dash-hero .muted,.public-hero .eyebrow,.public-hero p{color:rgba(255,255,255,.9)!important}
.dash-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
.dash-stats div{min-width:0!important;padding:12px 10px!important;border-radius:15px!important;background:rgba(255,255,255,.16)!important;border:1px solid rgba(255,255,255,.22)!important;backdrop-filter:blur(8px)}
.dash-stats span{color:#f3eaff!important;font-size:11px!important}.dash-stats b{color:#fff!important;font-size:17px!important}
.section-head{margin:22px 0 14px!important;align-items:center!important}
.section-head h2,.section-head h1{color:var(--ua-text)!important;font-size:clamp(20px,3vw,27px)!important}
.section-head>a{color:#7544ed!important;font-weight:800!important}
html[data-theme="dark"] .section-head>a{color:#c2a6ff!important}
.t-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-items:stretch}
.t-card{background:linear-gradient(145deg,var(--ua-surface),var(--ua-surface-2))!important;border:1px solid rgba(112,91,224,.28)!important;border-radius:21px!important;box-shadow:var(--ua-shadow)!important;overflow:hidden!important;min-width:0!important;transition:transform .25s ease,box-shadow .25s ease!important}
.t-card:hover{transform:translateY(-4px)!important;box-shadow:0 18px 38px rgba(85,54,180,.2)!important}
.t-thumb{height:auto!important;aspect-ratio:16/7!important;min-height:88px!important;border:0!important;background-size:cover!important;background-position:center!important}
.t-thumb:after{background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(4,6,20,.34))!important}
.t-body{padding:12px!important;gap:0!important}
.t-body h3{color:var(--ua-text)!important;font-size:clamp(13px,1.7vw,17px)!important;line-height:1.3!important;white-space:normal!important;min-height:2.5em!important}
.t-time{color:var(--ua-muted)!important;font-size:11px!important;margin:8px 0!important}
.t-prize{background:linear-gradient(110deg,rgba(111,65,230,.09),rgba(238,54,151,.07))!important;border:1px solid var(--ua-line)!important;border-radius:13px!important;color:var(--ua-text)!important;padding:10px!important}
.t-prize b{color:#d99b00!important;font-size:15px!important}
.t-meta{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;margin-top:8px!important}
.t-meta span{background:var(--ua-surface-2)!important;border:1px solid var(--ua-line)!important;color:var(--ua-muted)!important;border-radius:12px!important;padding:8px!important;font-size:10px!important}
.t-meta b{color:var(--ua-text)!important}
.t-bar{margin-top:8px!important;height:5px!important;border-radius:10px!important;background:var(--ua-line)!important}
.t-bar span{background:linear-gradient(90deg,#e73591,#7039ee)!important}
.t-btn{margin-top:12px!important;padding:11px 9px!important;border-radius:13px!important;background:linear-gradient(105deg,#f02e83,#a12eea 62%,#5939ef)!important;color:#fff!important;font-size:13px!important;box-shadow:0 8px 20px rgba(163,44,190,.24)!important}
.t-btn.disabled{background:#9ba0b2!important;color:#fff!important}
.t-mine{margin-bottom:5px!important}
.app-bottom{left:0!important;right:0!important;bottom:0!important;transform:none!important;width:100%!important;max-width:none!important;height:88px!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:3px!important;padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;border:1px solid rgba(166,107,255,.72)!important;border-bottom:0!important;border-radius:25px 25px 0 0!important;background:linear-gradient(105deg,rgba(20,10,75,.98),rgba(12,19,65,.98) 48%,rgba(52,8,75,.98))!important;box-shadow:0 -5px 28px rgba(94,37,255,.32),0 -2px 18px rgba(239,38,169,.22)!important;backdrop-filter:blur(18px)!important}
.app-bottom:before{content:"";position:absolute;inset:-2px 0 auto;height:2px;background:linear-gradient(90deg,#ff3eac,#714aff,#26c9ff,#ff3eac);box-shadow:0 0 14px #a34cff}
.app-bottom a{position:relative;z-index:1;color:#d8d7f6!important;font-size:12px!important;font-weight:800!important;gap:3px!important;border-radius:17px!important}
.app-bottom a.active{color:#fff!important;background:linear-gradient(145deg,#7b28f2,#d52cae)!important;box-shadow:0 0 18px rgba(187,55,255,.42),inset 0 1px 0 rgba(255,255,255,.25)!important}
.app-nav-icon{width:35px!important;height:35px!important;background:transparent!important;color:#fff!important;font-size:22px!important;border-radius:12px!important}
.app-bottom a.active .app-nav-icon{background:transparent!important;box-shadow:none!important;color:#fff!important}
html[data-theme="light"] .profile-hero,html:not([data-theme="dark"]) .profile-hero,
html[data-theme="light"] .panel,html:not([data-theme="dark"]) .panel,
html[data-theme="light"] .detail,html:not([data-theme="dark"]) .detail{background:#fff!important;color:#17172b!important}
.ph-text h1{color:var(--ua-text)!important}.ph-text p{color:var(--ua-muted)!important}
@media(min-width:900px){.app-bottom{height:82px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(900px,calc(100% - 32px))!important;bottom:12px!important;border-radius:25px!important;border-bottom:1px solid rgba(166,107,255,.72)!important;padding:8px!important}.container{padding-bottom:130px!important}}
@media(max-width:640px){
 .app-topbar{height:58px!important;padding:0 10px!important}
 .container{padding:12px 10px 112px!important}
 .home-slider{border-radius:17px!important;margin-bottom:14px!important}
 .home-slider-track{aspect-ratio:16/7!important;min-height:112px!important}
 .dash-hero,.public-hero{padding:17px!important;border-radius:20px!important}
 .dash-hero h1{font-size:22px!important}
 .dash-stats{gap:5px!important}.dash-stats div{padding:9px 6px!important}.dash-stats span{font-size:9px!important}.dash-stats b{font-size:14px!important}
 .t-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .t-body{padding:9px!important}.t-body h3{font-size:12px!important;min-height:31px!important}
 .t-time{font-size:9px!important}.t-prize{padding:8px!important;font-size:10px!important}.t-prize b{font-size:12px!important}
 .t-meta span{font-size:9px!important;padding:6px!important}.t-btn{font-size:11px!important;padding:10px 5px!important}
 .app-bottom{height:82px!important;padding:6px 5px calc(7px + env(safe-area-inset-bottom))!important}
 .app-bottom a{font-size:11px!important}.app-nav-icon{width:30px!important;height:30px!important;font-size:20px!important}
}
@media(max-width:360px){.t-grid{gap:7px!important}.t-body{padding:7px!important}.t-body h3{font-size:11px!important}.t-meta span{font-size:8px!important}}
@media(prefers-reduced-motion:reduce){.t-card,.app-bottom a{transition:none!important}}


/* ================================================================
   READABILITY UPDATE — larger, heavier typography; dark is default.
   Theme toggle remains user-controlled (data-theme="light" optional).
   ================================================================ */
html { color-scheme: dark; }
html[data-theme="dark"] {
  --ua-bg:#070a18; --ua-surface:#11182c; --ua-surface-2:#18213a;
  --ua-text:#f8faff; --ua-muted:#c2cbe0; --ua-line:#35415f;
}
html[data-theme="light"] {
  --ua-bg:#f4f6fc; --ua-surface:#ffffff; --ua-surface-2:#eef1f8;
  --ua-text:#111827; --ua-muted:#4b5568; --ua-line:#d5dbea;
}
body, body * { letter-spacing: normal; }
body { font-size:16px!important; font-weight:500!important; line-height:1.6!important; }
button, input, select, textarea { font:inherit; }
.app-brand b {font-size:15px!important;font-weight:900!important}
.app-brand small {font-size:11px!important;font-weight:800!important}
.app-wallet-pill,.app-menu {font-size:14px!important;font-weight:800!important}
.section-head h1,.section-head h2 {font-size:clamp(23px,3vw,30px)!important;font-weight:900!important;line-height:1.25!important}
.section-head>a {font-size:14px!important;font-weight:850!important}
.dash-hero h1,.public-hero h1 {font-size:clamp(25px,4vw,36px)!important;font-weight:900!important;line-height:1.25!important}
.dash-hero p,.public-hero p {font-size:15px!important;font-weight:600!important;line-height:1.55!important}
.dash-stats span {font-size:12px!important;font-weight:750!important}
.dash-stats b {font-size:18px!important;font-weight:900!important}
.t-body h3 {font-size:clamp(16px,1.8vw,19px)!important;font-weight:900!important;line-height:1.35!important;min-height:0!important}
.t-time {font-size:13px!important;font-weight:650!important;line-height:1.5!important}
.t-prize {font-size:14px!important;font-weight:750!important}
.t-prize b {font-size:18px!important;font-weight:950!important}
.t-meta span {font-size:12px!important;font-weight:750!important;line-height:1.4!important}
.t-btn {font-size:15px!important;font-weight:900!important;padding:13px 12px!important}
.app-bottom a {font-size:14px!important;font-weight:900!important;line-height:1.25!important}
.app-nav-icon {font-size:25px!important}
.profile-hero .ph-text h1,.ph-text h1 {font-size:clamp(22px,3vw,29px)!important;font-weight:900!important}
.profile-hero .ph-text p,.ph-text p,.muted,small {font-size:14px!important;font-weight:600!important}
.panel h1,.panel h2,.panel h3,.detail h1,.detail h2 {font-weight:900!important;line-height:1.3!important}
.panel label,.wallet-form label,.info-row,.lb-name {font-size:15px!important;font-weight:750!important}
input,select,textarea {font-size:16px!important;font-weight:600!important;min-height:44px}
html[data-theme="dark"] body {color:#f8faff!important}
html[data-theme="dark"] :is(p,span,label,small,.muted,.t-time,.t-meta span) {text-shadow:none}
html[data-theme="light"] body {color:#111827!important}
html[data-theme="light"] :is(p,span,label,small,.muted,.t-time,.t-meta span) {color:inherit}
html[data-theme="light"] .t-time,html[data-theme="light"] .muted,html[data-theme="light"] small {color:#4b5568!important}
html[data-theme="light"] .t-meta span {color:#374151!important}
@media(max-width:600px){
 body {font-size:16px!important}
 .t-body h3 {font-size:16px!important}
 .t-time {font-size:12px!important}
 .t-prize {font-size:13px!important}
 .t-prize b {font-size:17px!important}
 .t-meta span {font-size:11px!important}
 .t-btn {font-size:14px!important}
 .app-bottom a {font-size:13px!important}
 .dash-stats span {font-size:11px!important}
 .dash-stats b {font-size:16px!important}
}
