/* 🧸 Bolajonlar o'yinlari — Mini App bo'limi. Hammasi .gx ichida: boshqa bo'limlarga ta'sir qilmaydi. */
@font-face{font-family:Bal;font-weight:800;font-display:swap;src:url(f/baloo-800.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Bal;font-weight:800;font-display:swap;src:url(f/baloo-800-ext.woff2) format("woff2");
  unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Bal;font-weight:700;font-display:swap;src:url(f/baloo-700.woff2) format("woff2")}

.gx{--sky:#DFF3FF;--ink:#1D2A5B;--ink2:#46557F;--white:#FFFFFF;--red:#FF6B57;--sun:#FFC93C;--sun2:#E0A500;
  --grass:#3BB273;--grass2:#2A8A55;--grape:#7A5CFA;--grape2:#5536D6;--pink:#E5487F;--blue:#2E86DE;--blue2:#1C62A8;
  position:fixed;inset:0;z-index:30;display:flex;flex-direction:column;background:var(--bg,var(--sky));color:var(--ink);
  font:700 15px/1.35 Man,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased;
  -webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;transition:background .3s}
.gx[hidden]{display:none}
body.g-on{background:#DFF3FF}
body.g-on>.top,body.g-on>main,body.g-on .m-mini{display:none}
.gx :where(button){cursor:pointer;font:inherit;color:inherit;border:0;background:none;padding:0;touch-action:manipulation}
.gx button:focus-visible,.gx [tabindex]:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.gx .b{font-family:Bal,Man,-apple-system,sans-serif;font-weight:800;letter-spacing:-.01em}
.gx-scroll{flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;
  padding-bottom:env(safe-area-inset-bottom)}

/* ---------- yuqori qator ---------- */
.gx-bar{display:flex;align-items:center;gap:10px;padding:14px 16px 6px}
.gx-seg{display:inline-flex;background:rgba(255,255,255,.7);border-radius:14px;padding:4px;gap:2px;max-width:calc(100% - 90px);overflow-x:auto;scrollbar-width:none}
.gx-seg::-webkit-scrollbar{display:none}
.gx-seg button{padding:7px 10px;border-radius:10px;font-weight:800;font-size:14px;color:var(--ink2);white-space:nowrap}
.gx-seg button.on{background:var(--ink);color:#fff}
.gx-back{width:48px;height:48px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex:none;
  box-shadow:0 4px 0 var(--edge,#9CCBEA);transition:transform .1s}
.gx-back:active{transform:translateY(3px);box-shadow:0 1px 0 var(--edge,#9CCBEA)}
.gx-back svg{width:24px;height:24px}
.gx-title{flex:1;min-width:0;font-size:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gx-stars{margin-left:auto;display:flex;align-items:center;gap:5px;background:#fff;border-radius:999px;padding:6px 12px 6px 8px;
  box-shadow:0 4px 0 var(--edge,#9CCBEA);flex:none}
.gx-stars svg{width:22px;height:22px}
.gx-stars b{font-size:19px;min-width:14px}
.gx-stars.pulse{animation:gpulse .6s}
.gx-snd{margin-left:auto;width:40px;height:40px;border:0;border-radius:999px;background:#fff;font-size:20px;line-height:40px;
  box-shadow:0 2px 8px rgba(0,0,0,.08);cursor:pointer;flex:none}
.gx-snd+.gx-stars{margin-left:8px}
.gx-snd.off{background:#EADFD2;filter:grayscale(.3)}
.gx-snd:active{transform:scale(.92)}
@keyframes gpulse{40%{transform:scale(1.25)}}

/* ---------- bosh sahifa ---------- */
.gx-hero{position:relative;padding:8px 20px 4px}
.gx-hero h1{margin:14px 0 4px;font-size:34px;line-height:1.02}
.gx-hero p{margin:0;color:var(--ink2);font-size:15px}
.gx-sky{position:absolute;right:14px;top:-6px;width:120px;height:90px;pointer-events:none}
.gx-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px 16px 18px}
.gx-tile{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:132px;padding:12px;border-radius:24px;
  background:#fff;box-shadow:0 6px 0 var(--c2);text-align:left;transition:transform .1s}
.gx-tile:active{transform:translateY(4px);box-shadow:0 2px 0 var(--c2)}
.gx-tile .ic{width:54px;height:54px;border-radius:18px;background:var(--c1);display:flex;align-items:center;justify-content:center}
.gx-tile .ic svg{width:40px;height:40px}
.gx-tile b{font-size:18px;line-height:1.08}
.gx-tile small{font-size:12.5px;color:var(--ink2);margin-top:-6px}
.gx-tile .done{position:absolute}
.gx-parent{margin:0 16px 20px;background:var(--ink);color:#fff;border-radius:18px;padding:12px 16px;display:flex;gap:10px;align-items:center;font-size:13px}
.gx-parent svg{width:20px;height:20px;flex:none}

/* ---------- umumiy o'yin elementlari ---------- */
.gx-q{margin:10px 16px 0;background:#fff;border-radius:22px;padding:12px 14px;display:flex;align-items:center;gap:12px;box-shadow:0 5px 0 var(--edge,#9CCBEA)}
.gx-q .say{width:52px;height:52px;border-radius:50%;background:var(--red);display:flex;align-items:center;justify-content:center;flex:none}
.gx-q .say svg{width:26px;height:26px}
.gx-q b{font-size:21px;line-height:1.12}
.gx-q b em{font-style:normal;color:var(--red)}
.gx-h{margin:12px 16px 0;font-size:22px;line-height:1.12}
.gx-pill{background:#fff;border-radius:999px;padding:8px 14px;font-size:16px;flex:none}
.gx-dots{display:flex;justify-content:center;gap:8px;padding:12px 0 20px}
.gx-dots i{width:26px;height:10px;border-radius:5px;background:rgba(255,255,255,.85)}
.gx-dots i.on{background:var(--ink)}
.gx-big{display:flex;align-items:center;justify-content:center;border-radius:22px;font-size:44px;color:#fff;
  background:var(--c1);box-shadow:0 6px 0 var(--c2);transition:transform .1s}
.gx-big:active{transform:translateY(4px);box-shadow:0 2px 0 var(--c2)}
.gx-btn{display:flex;align-items:center;justify-content:center;gap:8px;height:56px;padding:0 22px;border-radius:20px;background:var(--ink);color:#fff;font-size:18px}
.wig{animation:gwig .45s}
@keyframes gwig{20%{transform:translateX(-8px) rotate(-4deg)}40%{transform:translateX(8px) rotate(4deg)}60%{transform:translateX(-6px)}80%{transform:translateX(5px)}}
.gx-fill{flex:1}

/* ---------- maqtov ---------- */
.gx-yay{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;pointer-events:none}
.gx-yay .ycard{background:#fff;border-radius:30px;padding:22px 28px;text-align:center;box-shadow:0 10px 0 rgba(29,42,91,.18);animation:gpop .5s cubic-bezier(.2,1.6,.4,1)}
.gx-yay .ycard svg{width:70px;height:70px}
.gx-yay .ycard b{display:block;font-size:30px;margin-top:4px}
.gx-yay i{position:absolute;left:50%;top:50%;width:12px;height:16px;border-radius:3px;animation:gconf 1s ease-out forwards}
@keyframes gpop{0%{transform:scale(.3);opacity:0}100%{transform:scale(1);opacity:1}}
@keyframes gconf{to{transform:translate(var(--dx),var(--dy)) rotate(var(--r));opacity:0}}

/* ---------- 1. sharcha ---------- */
.g-sky{position:relative;flex:1;min-height:440px;overflow:hidden}
.g-ground{position:absolute;left:0;right:0;bottom:0;height:90px;background:#8FD27A;border-radius:60% 60% 0 0/36px 36px 0 0}
.g-bal{position:absolute;width:96px;height:150px;animation:gbob var(--t,3s) ease-in-out infinite alternate}
.g-bal svg{width:96px;height:150px;display:block}
.g-bal span{position:absolute;left:0;right:0;top:26px;text-align:center;font-size:44px;color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.12)}
.g-bal.pop{animation:gburst .35s forwards}
@keyframes gbob{from{transform:translateY(0)}to{transform:translateY(-22px)}}
@keyframes gburst{50%{transform:scale(1.25)}100%{transform:scale(1.6);opacity:0}}

/* ---------- 2. juftlik ---------- */
.g-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px 16px 0}
.g-card{position:relative;aspect-ratio:3/4;border-radius:18px;perspective:600px}
.g-card .in{position:absolute;inset:0;transition:transform .35s;transform-style:preserve-3d}
.g-card.open .in,.g-card.got .in{transform:rotateY(180deg)}
.g-card .fa,.g-card .ba{position:absolute;inset:0;border-radius:18px;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;align-items:center;justify-content:center}
.g-card .fa{background:var(--grass);box-shadow:0 5px 0 var(--grass2)}
.g-card .fa svg{width:44%;height:44%}
.g-card .ba{background:#fff;box-shadow:0 5px 0 #9ED6B5;transform:rotateY(180deg)}
.g-card .ba svg{width:80%;height:80%}
.g-card.got .ba{background:#E3F6EA}

/* ---------- 3. poyezd ---------- */
.g-train{position:relative;height:170px;margin-top:40px;overflow:hidden}
.g-rail{position:absolute;left:0;right:0;top:140px;height:8px;background:var(--grape2);border-radius:4px}
.g-cars{position:absolute;left:10px;top:30px;display:flex;align-items:flex-end;gap:6px;transition:transform 1.1s ease-in}
.g-cars.go{transform:translateX(420px)}
.g-wag{position:relative;width:66px;height:104px}
.g-wag .box{position:absolute;left:0;top:10px;width:66px;height:72px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:40px;color:#fff}
.g-wag .box.vacant{background:#F3EFFF;border:4px dashed var(--grape2)}
.g-wag .w{position:absolute;top:80px;width:22px;height:22px;border-radius:50%;background:var(--ink);border:4px solid #fff;box-sizing:border-box}
.g-tray{margin:0 16px;background:#fff;border-radius:28px 28px 0 0;padding:18px 16px 26px}
.g-tray .hint{text-align:center;color:var(--ink2);font-size:14px;margin-bottom:12px}
.g-ch3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.g-ch3 .gx-big{height:88px;font-size:46px}

/* ---------- 4. sanoq ---------- */
.g-tree{position:relative;height:400px;margin-top:6px}
.g-tree>svg{position:absolute;left:50%;top:0;transform:translateX(-50%)}
.g-fruit{position:absolute;width:54px;height:58px;animation:gsway 2.4s ease-in-out infinite alternate}
@keyframes gsway{from{transform:rotate(-5deg)}to{transform:rotate(5deg)}}
.g-ch4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 16px 22px}
.g-ch4 .gx-big{height:84px;font-size:44px;color:var(--ink);--c1:#fff;--c2:#EBCB6B}

/* ---------- 5. bo'yoqchi ---------- */
.g-paper{margin:12px 16px 0;background:#fff;border-radius:28px;padding:10px;box-shadow:0 6px 0 #F2A9C6;display:flex;justify-content:center}
.g-paper svg{width:100%;max-width:340px;height:auto}
.g-paper [data-r]{cursor:pointer;transition:fill .2s}
.g-pics{display:flex;gap:8px;padding:12px 16px 0}
.g-pics button{flex:1;height:44px;border-radius:14px;background:rgba(255,255,255,.7);font-size:15px}
.g-pics button.on{background:var(--pink);color:#fff}
.g-pal{margin:12px 16px 20px;background:#fff;border-radius:26px;padding:12px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.g-pal button{width:100%;max-width:54px;aspect-ratio:1;border-radius:50%;margin:0 auto;border:3px solid #fff;box-shadow:0 0 0 2px #E8DCE3}
.g-pal button.on{box-shadow:0 0 0 4px var(--ink);transform:scale(1.08)}

/* ---------- 6. shakllar ---------- */
.g-board{margin:14px 16px 0;background:#C9915B;border-radius:30px;padding:18px;box-shadow:0 8px 0 #9C6B3E;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.g-hole{height:128px;border-radius:22px;background:#B07A4F;display:flex;align-items:center;justify-content:center}
.g-hole svg{width:92px;height:92px}
.g-piece{display:flex;justify-content:center;align-items:center;height:130px}
.g-piece svg{width:104px;height:104px;animation:gbob 1.4s ease-in-out infinite alternate}

/* ---------- 7. ovoz ---------- */
.g-spk{width:150px;height:150px;border-radius:50%;background:#E67E22;margin:30px auto 0;display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 14px #F7B98A,0 0 0 28px #FBD3B3}
.g-spk svg{width:64px;height:64px}
.g-spk.g-ringing{animation:gring .5s ease-in-out 3}
@keyframes gring{50%{box-shadow:0 0 0 22px #F7B98A,0 0 0 40px #FBD3B3}}
.g-ani{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0 16px 22px}
.g-ani button{height:170px;border-radius:26px;background:#fff;box-shadow:0 6px 0 #F2B98A;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.g-ani button svg{width:96px;height:96px}
.g-ani button b{font-size:19px}

/* ---------- 8. labirint ---------- */
.g-maze{margin:12px 16px 0;background:#fff;border-radius:28px;padding:12px;box-shadow:0 6px 0 #9ED6B5;touch-action:none}
.g-maze svg{width:100%;height:auto;display:block}
.g-pad{display:grid;grid-template-columns:repeat(3,70px);grid-template-rows:repeat(2,62px);gap:8px;margin:14px auto 22px}
.g-pad button{border-radius:20px;background:#2E9E60;box-shadow:0 5px 0 #1F7646;display:flex;align-items:center;justify-content:center}
.g-pad button:active{transform:translateY(3px);box-shadow:0 2px 0 #1F7646}
.g-pad svg{width:30px;height:30px}

/* ---------- 9. kiyin ---------- */
.g-wx{margin:12px 16px 0;border-radius:22px;padding:12px 16px;display:flex;align-items:center;gap:12px;color:#fff}
.g-wx svg{width:44px;height:44px;flex:none}
.g-wx b{font-size:20px;display:block;line-height:1.1}
.g-kid{display:flex;justify-content:center;margin-top:4px}
.g-kid svg{width:270px;height:280px}
.g-wear{margin:0 16px 20px;background:#fff;border-radius:26px;padding:12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.g-wear button{height:92px;border-radius:18px;background:#F3EFFF;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:13px}
.g-wear button svg{width:44px;height:44px}
.g-wear button.on{background:#E3F6EA;box-shadow:inset 0 0 0 4px var(--grass)}

/* ---------- 10. pianino ---------- */
.g-mode{margin:12px 16px 0;background:#fff;border-radius:999px;padding:5px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.g-mode button{height:46px;border-radius:999px;font-size:16px}
.g-mode button.on{background:#E0533F;color:#fff}
.g-song{margin:12px 16px 0;background:#fff;border-radius:22px;padding:10px 14px}
.g-song small{color:var(--ink2);font-size:13px}
.g-song div{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.g-song span{min-width:34px;height:34px;padding:0 6px;box-sizing:border-box;border-radius:10px;background:#F3EFFF;display:flex;align-items:center;justify-content:center;font-size:15px}
.g-song span.ok{background:#D9F2E3;color:#2A8A55}
.g-song span.cur{background:var(--ink);color:#fff}
.g-xylo{flex:1;margin:14px 16px 20px;background:#9C6B3E;border-radius:30px;padding:16px 12px;box-shadow:0 8px 0 #7E5432;
  display:flex;flex-direction:column;justify-content:space-between;gap:8px;min-height:420px}
.g-key{align-self:center;height:46px;border-radius:16px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;
  color:#fff;font-size:18px;box-shadow:0 4px 0 rgba(0,0,0,.2);transition:transform .08s}
.g-key i{width:12px;height:12px;border-radius:50%;background:rgba(255,255,255,.8)}
.g-key.hit{transform:scale(.96) translateY(3px);box-shadow:0 1px 0 rgba(0,0,0,.2);filter:brightness(1.15)}
.g-key.next{box-shadow:0 0 0 4px #fff,0 4px 0 rgba(0,0,0,.2);animation:gpulse 1s infinite}

@media (prefers-reduced-motion:reduce){
  .g-bal,.g-fruit,.g-piece svg,.g-key.next,.gx-stars.pulse{animation:none}
  .g-cars{transition:none}
}

/* =================== 2-to'plam: Anorjon =================== */
.g-hero{position:relative;display:flex;align-items:flex-end;gap:4px;padding:6px 16px 0;min-height:150px}
.g-hero .av{width:118px;height:124px;flex:none;animation:gbob 1.6s ease-in-out infinite alternate}
.g-hero .av svg{width:100%;height:100%}
.g-hero .bub{margin-bottom:62px;background:#fff;border-radius:22px 22px 22px 4px;padding:9px 13px;box-shadow:0 5px 0 #9CCBEA;max-width:180px}
.g-hero .bub b{display:block;font-size:18px;line-height:1.1}
.g-hero .bub span{font-size:13.5px;color:var(--ink2)}
.g-chest{position:absolute;right:16px;top:4px;width:64px;height:60px;animation:gwig 1.6s ease-in-out infinite}
.g-chest svg{width:64px;height:60px}
.g-chest i{position:absolute;right:-2px;top:-4px;width:22px;height:22px;border-radius:50%;background:#FF4D5E;color:#fff;font:800 13px/18px Man,sans-serif;font-style:normal;border:2px solid #fff}
.g-petcard{display:flex;align-items:center;gap:12px;margin:8px 16px 0;padding:12px 14px;border-radius:26px;background:#FF4D5E;box-shadow:0 6px 0 #B3263A;color:#fff;text-align:left;width:calc(100% - 32px);box-sizing:border-box}
.g-petcard .ic{width:66px;height:66px;border-radius:20px;background:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.g-petcard .ic svg{width:58px;height:58px}
.g-petcard .tx{flex:1;min-width:0}
.g-petcard b{display:block;font-size:21px;line-height:1}
.g-petcard small{display:block;font-size:13.5px;opacity:.95;margin-top:3px}
.g-sec{margin:18px 16px -6px;font-size:21px}

.g-say{display:flex;align-items:center;gap:8px;margin:10px 16px 0}
.g-say .av{width:58px;height:60px;flex:none}.g-say .av svg{width:100%;height:100%}
.g-say b{background:#fff;border-radius:18px 18px 18px 4px;padding:8px 12px;font-size:17px;line-height:1.15;box-shadow:0 4px 0 var(--edge)}

/* arkada */
.g-can{position:relative;flex:1;min-height:480px;margin:10px 16px 18px;border-radius:26px;overflow:hidden;box-shadow:0 6px 0 var(--edge);touch-action:none}
.g-can canvas{display:block;touch-action:none}
.g-hint{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);background:rgba(255,255,255,.95);border-radius:22px;padding:12px 18px;text-align:center;
  font-size:20px;line-height:1.15;box-shadow:0 5px 0 rgba(29,42,91,.18);pointer-events:none;transition:opacity .3s;white-space:nowrap}
.g-hint small{font:700 13px Man,sans-serif;color:var(--ink2)}
.g-over{position:absolute;inset:0;background:rgba(29,42,91,.55);display:flex;align-items:center;justify-content:center}
.g-over[hidden]{display:none}
.g-over .box2{background:#fff;border-radius:28px;padding:18px 22px;text-align:center;min-width:220px;animation:gpop .4s cubic-bezier(.2,1.6,.4,1)}
.g-over .nb{color:#E5487F;font-size:18px}
.g-over .sc{font-size:54px;line-height:1}
.g-over .bs{color:var(--ink2);font-size:14px;margin:4px 0 14px}

/* kuchukcha */
.g-room{position:relative;margin:10px 16px 0;border-radius:28px;background:#FFC2D7;overflow:hidden;padding-bottom:10px;transition:background .4s}
.g-room::after{content:"";position:absolute;left:0;right:0;bottom:0;height:110px;background:#F4B26B;z-index:0}
.g-room.night{background:#3D3A78}
.g-room.night::after{background:#8A6A4A}
.g-needs{position:relative;z-index:1;margin:10px;background:#fff;border-radius:20px;padding:8px 10px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.g-needs div{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px}
.g-needs i{display:block;width:100%;height:12px;border-radius:6px;background:#F1E7EC;overflow:hidden}
.g-needs em{display:block;height:12px;border-radius:6px;transition:width .5s}
.g-petbox{position:relative;z-index:1;height:330px;display:flex;flex-direction:column;align-items:center}
.g-bub{background:#fff;border-radius:22px 22px 22px 4px;padding:9px 14px;font-size:19px;line-height:1.1;margin-top:6px;max-width:80%;text-align:center;box-shadow:0 4px 0 #E59BB8}
.g-pet{width:240px;height:250px;margin-top:4px}
.g-pet svg{width:100%;height:100%}
.g-pet.hop{animation:ghop .6s}
@keyframes ghop{30%{transform:translateY(-26px) scale(1.04)}60%{transform:translateY(0) scale(.98)}}
.g-pet .g-tail{animation:gwag .5s ease-in-out infinite alternate;transform-origin:86px 92px}
@keyframes gwag{from{transform:rotate(-10deg)}to{transform:rotate(12deg)}}
.g-room.night .g-tail{animation:none}
.g-fx{position:absolute;left:50%;top:120px;width:70px;height:70px;margin-left:-35px;opacity:0;pointer-events:none}
.g-fx svg{width:100%;height:100%}
.g-fx.on{animation:gfx 1s ease-out}
@keyframes gfx{0%{opacity:0;transform:translateY(30px) scale(.5)}30%{opacity:1;transform:translateY(0) scale(1.1)}100%{opacity:0;transform:translateY(-60px)}}
.g-days{position:relative;z-index:1;text-align:center;font-size:13px;color:#8A3F5F}
.g-room.night .g-days{color:#fff}
.g-acts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px 16px 20px}
.g-acts .gx-big{height:92px;flex-direction:column;gap:2px;font-size:15px}
.g-acts .gx-big svg{width:38px;height:38px}
.g-acts .gx-big[disabled]{opacity:.4}

/* tort / osh qadamlari */
.g-steps{display:flex;gap:6px;margin:10px 16px 0}
.g-steps span{flex:1;height:38px;border-radius:13px;background:#fff;display:flex;align-items:center;justify-content:center;font:800 13.5px Bal,Man,sans-serif}
.g-steps span.ok{background:#3BB273;color:#fff}
.g-steps span.cur{background:var(--ink);color:#fff}
.g-cake{display:flex;justify-content:center;margin-top:6px}
.g-cake svg{width:100%;max-width:340px;height:auto}
.g-flame{animation:gflick .3s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 100%}
@keyframes gflick{to{transform:scale(1.15,.9)}}
.g-opts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.g-opt{height:84px;border-radius:18px;background:#F7F3FF;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px}
.g-opt span{width:40px;height:26px;border-radius:9px;box-shadow:inset 0 -6px 0 rgba(0,0,0,.12),0 0 0 2px #E8E2F2}
.g-opt svg{width:40px;height:40px}
.g-opt.on{box-shadow:inset 0 0 0 4px var(--pink)}
.g-opt .ic-q{background:#FF4B3E;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;width:26px}
.g-opt .ic-s{background:repeating-linear-gradient(45deg,#FF4B3E 0 4px,#FFC93C 4px 8px,#23C4E8 8px 12px)}
.g-opt .ic-k{background:#23C4E8;border-radius:50%;width:26px}
.g-opt .ic-y{background:#FFC93C;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);width:28px;height:28px;box-shadow:none}

/* puzzle */
.g-pz{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:12px 16px 0;background:#fff;border-radius:22px;padding:6px;box-shadow:0 6px 0 #1C62A8}
.g-tile2{aspect-ratio:1;border-radius:10px;overflow:hidden;transition:transform .15s}
.g-tile2 svg{width:100%;height:100%;display:block}
.g-tile2.sel{transform:scale(.9);box-shadow:0 0 0 4px #FFC93C}
.g-tile2.ok{box-shadow:inset 0 0 0 3px rgba(59,178,115,.8)}
.g-pzref{display:flex;align-items:center;gap:10px;margin:0 16px 20px;background:rgba(255,255,255,.9);border-radius:18px;padding:8px 12px}
.g-pzref svg{width:70px;height:70px;border-radius:10px}

/* farqini top */
.g-farq{margin:10px 16px 0;background:#fff;border-radius:20px;padding:6px;box-shadow:0 5px 0 #B3263A}
.g-farq svg{width:100%;height:auto;display:block;border-radius:14px}
#gfarq{cursor:crosshair}
.g-farqf{display:flex;align-items:center;gap:10px;margin:0 16px 20px;background:#fff;border-radius:20px;padding:10px 12px}
.g-farqf b{flex:1;font-size:18px}
.g-farqf .gx-btn{height:46px;font-size:15px;padding:0 16px}

/* osh */
.g-pot{display:flex;justify-content:center}
.g-pot svg{width:100%;max-width:330px;height:auto}
.g-steam{animation:gsteam 1.6s ease-in-out infinite}
@keyframes gsteam{0%{opacity:0;transform:translateY(10px)}50%{opacity:.9}100%{opacity:0;transform:translateY(-14px)}}
.g-fire{animation:gflick .25s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 100%}
.g-board2{width:100%;display:block}
.g-board2 svg{width:100%;height:auto}

/* soya */
.g-shadow{position:relative;height:300px;display:flex;align-items:center;justify-content:center}
.g-shadow .beam{position:absolute;left:50%;top:-40px;width:260px;height:360px;margin-left:-130px;background:radial-gradient(ellipse at 50% 70%,rgba(255,230,109,.35),rgba(255,230,109,0) 65%)}
.g-shadow svg{position:relative;width:220px;height:220px;animation:gpop .4s}
.g-ani3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 16px 22px}
.g-ani3 button{height:146px;border-radius:24px;background:#fff;box-shadow:0 6px 0 #0B1238;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.g-ani3 button svg{width:80px;height:80px}
.g-ani3 button b{font-size:16px}
.g-ani3 button.ok{box-shadow:0 0 0 5px #3BB273,0 6px 0 #0B1238}

@media (prefers-reduced-motion:reduce){
  .g-hero .av,.g-chest,.g-pet .g-tail,.g-flame,.g-steam,.g-fire{animation:none}
}

.g-tray .gx-btn{margin:0 auto}

/* =================== 3-to'plam: 30 ta o'yin =================== */
.g-hud{display:flex;align-items:center;gap:8px;margin-left:auto}
.g-hud .gx-pill{white-space:nowrap}
.g-rst{width:44px;height:44px}
.g-rst svg{width:22px;height:22px}
.g-new{position:absolute;right:10px;top:10px;background:#FF4D5E;color:#fff;font:800 11px Man,sans-serif;font-style:normal;padding:3px 8px;border-radius:999px}
.gx-tile{position:relative}
.g-cats{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:16px 16px 0}
.g-cats::-webkit-scrollbar{display:none}
.g-cats button{flex:none;height:42px;padding:0 16px;border-radius:999px;background:#fff;font-size:15px;box-shadow:0 3px 0 #9CCBEA}
.g-cats button.on{background:var(--ink);color:#fff;box-shadow:0 3px 0 #0B1238}

.g-needs2{grid-template-columns:repeat(2,minmax(0,1fr));margin:10px 16px 0;box-shadow:0 4px 0 var(--edge)}
.g-dragon{display:flex;justify-content:center;margin-top:6px}
.g-dragon svg{width:250px;height:250px;animation:gbob 1.4s ease-in-out infinite alternate}
.g-dragon.chew svg{animation:gchew .18s ease-in-out infinite alternate}
@keyframes gchew{to{transform:scale(1.04,.96)}}

.g-garden{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 12px 0}
.g-pot2{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 0;border-radius:20px;background:rgba(255,255,255,.55)}
.g-pot2 svg{width:100%;max-width:110px;height:auto}
.g-pot2 .lbl{font-size:12.5px;text-align:center;line-height:1.1;min-height:28px}

.g-bf{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:12px 16px 0;background:#fff;border-radius:22px;padding:8px;box-shadow:0 6px 0 var(--edge)}
.g-bf button{aspect-ratio:1;border-radius:8px;background:#EDE7FF;transition:background .2s}
.g-bfq{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.g-bfq button{height:96px;border-radius:20px;background:#F7F3FF;display:flex;align-items:center;justify-content:center}
.g-bfq button.on{box-shadow:inset 0 0 0 4px var(--ink)}
.g-bfq span{display:grid;gap:3px}
.g-bfq i{width:18px;height:18px;border-radius:4px;display:block}

.g-dots{margin:10px 16px 0;display:flex;justify-content:center}
.g-dots svg{width:100%;max-width:360px;height:auto}
.g-next{animation:gpulse 1s infinite;transform-box:fill-box;transform-origin:center}
.g-fillin{animation:gpop .5s}

.g-scale{display:flex;justify-content:center;margin-top:8px}
.g-scale svg{width:100%;max-width:360px;height:auto}

.g-mixrow{display:flex;align-items:center;justify-content:space-around;margin:18px 16px 0}
.g-target{display:flex;flex-direction:column;align-items:center;gap:6px}
.g-target span{width:96px;height:96px;border-radius:28px;box-shadow:0 6px 0 rgba(0,0,0,.12)}
.g-target b{font-size:18px}
.g-bowl{width:170px;height:auto}

.g-drums{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px;overflow:hidden}
.g-pad{position:relative;width:100%;height:140px;border-radius:50%;display:flex;align-items:center;justify-content:center;text-align:center;background:var(--c);box-shadow:inset 0 -12px 0 rgba(0,0,0,.18),0 0 0 6px rgba(255,255,255,.15);color:#fff;overflow:hidden}
.g-pad.big{grid-column:span 2;height:170px;border-radius:44px}
.g-pad b{position:relative;font-size:18px}
.g-pad .ring{position:absolute;inset:0;border-radius:inherit;border:6px solid #fff;opacity:0}
.g-pad.hit{transform:scale(.95)}
.g-pad.hit .ring{animation:gripple .5s ease-out}
@keyframes gripple{0%{opacity:.9;transform:scale(.6)}100%{opacity:0;transform:scale(1.15)}}
.gx.dark .gx-title,.gx.dark .gx-h{color:#fff}
.gx.dark .g-tray .hint{color:var(--ink2)}

.g-notes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:0 16px 18px}
.g-notes button{height:72px;border-radius:20px;color:#fff;font-size:20px;box-shadow:0 5px 0 rgba(0,0,0,.25)}
.g-notes button:active{transform:translateY(3px)}

.g-eq{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:24px 12px 0;background:#fff;border-radius:26px;padding:16px;box-shadow:0 6px 0 #EBCB6B}
.g-eq>div{display:flex;flex-wrap:wrap;max-width:120px;justify-content:center}
.g-eq>b{font-size:40px}
.g-fr svg{width:36px;height:38px}
.g-fr.x{position:relative;opacity:.35}
.g-fr.x::after{content:"";position:absolute;left:2px;right:2px;top:50%;height:4px;background:#FF4D5E;transform:rotate(-30deg)}
.g-num{font-size:40px}
.g-q{color:#E0A500}
.g-eqtxt{text-align:center;font-size:28px;margin-top:14px}
.g-mch{padding:0 16px 22px}
.g-mch .gx-big{height:96px;font-size:48px}

.g-bells{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:24px 22px}
.g-bells button{height:150px;border-radius:30px;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;transition:transform .1s}
.g-bells svg{width:110px;height:110px}
.g-bells .g-ringb{background:rgba(255,255,255,.35);transform:scale(1.06) rotate(-6deg)}
.gx-h[id="gsimon"]{min-height:30px}

.g-shop{display:flex;gap:12px;margin:14px 16px 0}
.g-item{flex:1;background:#fff;border-radius:24px;padding:12px;display:flex;flex-direction:column;align-items:center;gap:4px;box-shadow:0 5px 0 #9ED6B5}
.g-item svg{width:84px;height:84px}
.g-item b{font-size:19px}
.g-item .tag{background:#FFC93C;border-radius:10px;padding:4px 10px;font-size:15px}
.g-till{flex:1;background:#2E86DE;border-radius:24px;padding:12px;display:flex;flex-direction:column;gap:8px;box-shadow:0 5px 0 #1C62A8}
.g-till .scr{background:#0B1238;color:#3BF07A;border-radius:12px;padding:10px;font:700 17px/1 ui-monospace,Menlo,monospace;text-align:right}
.g-paid{display:flex;flex-wrap:wrap;gap:4px}
.g-paid i{font:800 11px Man,sans-serif;font-style:normal;padding:4px 6px;border-radius:5px;color:#1D2A5B}
.g-bill{background:var(--bc)!important;height:70px!important;flex-direction:row!important;gap:6px!important;font-size:13px!important}
.g-bill span{width:auto!important;height:auto!important;box-shadow:none!important;font-size:22px}

.g-order{display:flex;gap:8px;align-items:flex-start;margin:12px 16px 0}
.g-order .who svg{width:64px;height:64px}
.g-order .bub2{flex:1;background:#fff;border-radius:20px 20px 20px 4px;padding:10px 12px;box-shadow:0 4px 0 #F2A9C6;position:relative;padding-right:64px;min-height:60px}
.g-order .bub2 b{display:block;font-size:16px}
.g-order .bub2 span{font-size:14px}
.g-order .mini{position:absolute;right:6px;top:6px;width:52px}
.g-order .mini svg{width:52px;height:74px}
.g-ice{display:flex;justify-content:center;margin-top:6px}
.g-ice svg{width:150px;height:212px}

.g-slide .g-empty2{aspect-ratio:1;border-radius:10px;background:rgba(46,134,222,.18)}

.gx-scroll{overflow-x:hidden}

/* 🧒 Kichiklar / 🧑 Kattalar */
.gx-aud{display:flex;gap:6px;margin:4px 16px 2px;padding:4px;border-radius:16px;background:rgba(255,255,255,.75)}
.gx-aud button{flex:1;padding:9px 8px;border-radius:12px;font-weight:800;font-size:15px;color:var(--ink2)}
.gx-aud button.on{background:var(--ink);color:#fff}
.gx-aud.ad{background:#2A2219;box-shadow:inset 0 0 0 1px #4A3B28}
.gx-aud.ad button{color:#C9B89A}
.gx-aud.ad button.on{background:#D9A84E;color:#1E160D}
.gx.dark .gx-seg{background:#2A2219}
.gx.dark .gx-seg button{color:#C9B89A}
.gx.dark .gx-seg button.on{background:#D9A84E;color:#1E160D}
