/* ===== Oofy UI 2 : full visual redesign (layered over the old markup) ===== */
html body{--bg:#09090f;--surface:#13131d;--surface2:#1b1b29;--border:rgba(255,255,255,.075);--accent:#ffcf3f;--accent2:#ff5d73;--purple:#9d8cff;--muted:#a3a3b8;
 --r:18px;--glow:0 10px 30px rgba(255,207,63,.22);
 background:var(--bg);font-feature-settings:"ss01";-webkit-font-smoothing:antialiased}
html body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
 background:radial-gradient(60% 40% at 15% -5%,rgba(157,140,255,.18),transparent 70%),radial-gradient(50% 35% at 95% 5%,rgba(255,207,63,.12),transparent 70%),radial-gradient(50% 40% at 50% 110%,rgba(255,93,115,.10),transparent 70%)}
/* nav */
html body nav{height:62px;padding:0 clamp(12px,3vw,32px);background:rgba(12,12,20,.72);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);border-bottom:1px solid var(--border);gap:8px}
html body .logo{font-size:1.45rem;letter-spacing:-.5px;font-weight:900;flex:none}
html body .logo span{background:linear-gradient(135deg,#ffcf3f,#ff8a5c);-webkit-background-clip:text;background-clip:text;color:transparent}
html body .nav-right{gap:8px}
/* buttons */
html body .btn{border-radius:14px;font-weight:800;letter-spacing:.1px;transition:transform .12s,filter .15s,background .15s,border-color .15s;-webkit-tap-highlight-color:transparent}
html body .btn:active:not(:disabled){transform:scale(.96)}
html body .btn-yellow{background:linear-gradient(180deg,#ffd95c,#ffbf1f);color:#1a1405;box-shadow:0 6px 18px rgba(255,191,31,.28),inset 0 1px 0 rgba(255,255,255,.5)}
html body .btn-ghost{background:rgba(255,255,255,.045);border:1px solid var(--border);color:#d6d6e6}
html body .btn-ghost:hover:not(:disabled){background:rgba(255,255,255,.09);color:#fff}
html body .oofbux-badge{border-radius:999px}
/* pages */
html body .page.active{animation:u2in .28s ease both}
@keyframes u2in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
/* hero */
html body .hero{padding:clamp(1.4rem,4vw,3.4rem) 1.25rem 1.4rem;position:relative}
html body .hero-mascot{width:clamp(104px,26vw,150px);height:auto;margin-bottom:.4rem}
html body .hero h1{font-size:clamp(2.1rem,7.4vw,3.9rem);letter-spacing:-1.5px;line-height:1.02;margin-bottom:.7rem}
html body .hero h1 em{background:linear-gradient(120deg,#ffcf3f,#ff8a5c 60%,#ff5d73);-webkit-background-clip:text;background-clip:text;color:transparent}
html body .hero p{font-size:1rem;max-width:430px;margin-bottom:1rem;line-height:1.45}
.u2-chips{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:0 auto 1.3rem}
.u2-chips span{font-size:12px;font-weight:800;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid var(--border);color:#e6e6f2}
html body #hero-auth{display:flex;gap:10px;justify-content:center;max-width:380px;margin:0 auto 10px}
html body #hero-auth .btn{flex:1;padding:14px;font-size:15px}
html body .hero-btns{max-width:380px;margin:0 auto}
html body .hero-btns .btn{flex:1;font-size:14px!important;padding:12px 14px!important;white-space:nowrap}
/* cards (daily, survey) */
html body #daily-challenge-card,html body #survey-card{border-radius:22px!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
/* sections */
html body .section{padding:1.2rem clamp(12px,3vw,32px)}
html body .section-title{font-size:1.2rem;font-weight:900;letter-spacing:-.3px;margin:6px 0 12px}
#game-search{border-radius:16px!important;padding:13px 18px!important;background:rgba(255,255,255,.05)!important;border:1px solid var(--border)!important;font-size:15px!important;font-weight:700}
#game-search:focus{outline:none;border-color:rgba(255,207,63,.55)!important;box-shadow:0 0 0 4px rgba(255,207,63,.12)}
/* category chips */
.u2-cats{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 14px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.u2-cats::-webkit-scrollbar{display:none}
.u2-cat{flex:none;border:1px solid var(--border);background:rgba(255,255,255,.05);color:#cfcfe2;font:800 13px Nunito,Arial,sans-serif;padding:8px 14px;border-radius:999px;cursor:pointer;transition:all .15s;-webkit-tap-highlight-color:transparent}
.u2-cat.on{background:linear-gradient(180deg,#ffd95c,#ffbf1f);color:#1a1405;border-color:transparent;box-shadow:0 4px 14px rgba(255,191,31,.25)}
.u2-cat small{opacity:.6;font-weight:800;margin-left:4px}
.game-card.cat-hide{display:none!important}
/* game grid */
html body .games-grid{grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:14px}
html body .game-card{border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.02));border:1px solid var(--border);position:relative;box-shadow:0 8px 24px rgba(0,0,0,.28)}
html body .game-card:hover{transform:translateY(-4px);border-color:rgba(255,207,63,.45);box-shadow:0 14px 34px rgba(0,0,0,.4),0 0 0 1px rgba(255,207,63,.12)}
html body .game-card:active{transform:scale(.97)}
html body .game-thumb{aspect-ratio:1/1!important;padding:0!important}
html body .game-thumb.game-icon{padding:16% 16% 4%!important;background:radial-gradient(circle at 50% 38%,rgba(255,255,255,.09),transparent 65%)!important}
html body .game-thumb.game-icon img{height:auto!important;width:100%!important;max-height:100%;filter:drop-shadow(0 10px 14px rgba(0,0,0,.45));transition:transform .25s}
html body .game-card:hover .game-thumb.game-icon img{transform:scale(1.07) rotate(-2deg)}
html body .game-info{padding:2px 12px 13px;text-align:center}
html body .game-info h3{font-size:14px;font-weight:900;letter-spacing:-.2px;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .game-info p{display:none}
html body .game-tag{margin-top:0;font-size:10.5px;padding:3px 10px}
/* featured */
html body .feat-row{gap:14px;padding:4px 2px 16px}
/* modals as bottom sheets on phones */
html body .modal{border-radius:26px;background:linear-gradient(180deg,#1a1a28,#13131d);box-shadow:0 30px 80px rgba(0,0,0,.6)}
html body .toast{border-radius:16px;backdrop-filter:blur(12px)}
/* bottom tab bar */
#u2-tabs{display:none}
@media (max-width:760px){
 html body{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
 html body nav button[onclick*="install.html"],html body nav button[onclick*="showPage('lobby')"],html body nav button[onclick*="gotoLobby()"],html body nav button[onclick*="showPage('shop')"]{display:none}
 html body #lang-btn{padding:8px 10px!important;margin-right:0!important}
 html body nav .btn{padding:8px 12px;font-size:13px}
 html body .games-grid{grid-template-columns:repeat(2,1fr);gap:12px}
 html body .modal-overlay{align-items:flex-end}
 html body .modal{margin:0;max-width:none;border-radius:26px 26px 0 0;max-height:92vh;overflow-y:auto;padding:1.6rem 1.3rem calc(1.6rem + env(safe-area-inset-bottom))}
 html body .toast{left:12px;right:12px;bottom:calc(86px + env(safe-area-inset-bottom));text-align:center}
 html body #support-bot-fab{bottom:calc(86px + env(safe-area-inset-bottom));left:14px;width:46px;height:46px}
 html body #support-bot-panel{bottom:calc(140px + env(safe-area-inset-bottom))}
 html body #oofy-music-toggle{bottom:calc(86px + env(safe-area-inset-bottom))!important;right:14px!important;width:38px!important;height:38px!important}
 #u2-tabs{display:flex;position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:900;height:62px;padding:6px;border-radius:24px;background:rgba(18,18,28,.82);-webkit-backdrop-filter:blur(20px) saturate(1.5);backdrop-filter:blur(20px) saturate(1.5);border:1px solid rgba(255,255,255,.1);box-shadow:0 14px 40px rgba(0,0,0,.55)}
 #u2-tabs a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#8f8fa6;text-decoration:none;font:800 10.5px Nunito,Arial,sans-serif;border-radius:18px;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:all .15s}
 #u2-tabs a svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
 #u2-tabs a.on{color:#1a1405;background:linear-gradient(180deg,#ffd95c,#ffbf1f);box-shadow:0 6px 16px rgba(255,191,31,.3)}
 #u2-tabs a:active{transform:scale(.93)}
}
@media (min-width:761px){html body .games-grid{grid-template-columns:repeat(auto-fill,minmax(176px,1fr))}}
@media (prefers-reduced-motion:reduce){html body .page.active,html body .hero-mascot{animation:none}}
html body #hero-auth{flex-direction:row!important}
html body .section>div[style*="max-width:900px"],html body #page-home>div[style*="max-width:900px"]{padding-left:clamp(12px,3vw,32px)!important;padding-right:clamp(12px,3vw,32px)!important}
html body .section{padding-left:clamp(12px,3vw,32px);padding-right:clamp(12px,3vw,32px)}
html body .section>div[style*="max-width:900px"]{padding-left:0!important;padding-right:0!important}
html body .hero-btns .btn-yellow{background:rgba(255,255,255,.06);color:#fff;box-shadow:none;border:1px solid rgba(255,207,63,.45)}
html body #ann-bell{width:40px!important;height:40px!important;border-radius:50%!important;padding:0!important;display:flex;align-items:center;justify-content:center;margin:0 2px!important}
html body:has(.modal-overlay.open) #oofy-music-toggle,html body:has(.modal-overlay.open) #support-bot-fab{display:none!important}
