/* Superkids V1 -- EXTRAS: 🎒 My Treasure room, celebrations, lucky star, floating buddy */

/* ---------- home: treasure button ---------- */
.skx-treasure-btn {
  position: relative; width: 72px; height: 72px; font-size: 38px;
  background: linear-gradient(#fff, #e8fff6);
  box-shadow: 0 6px 0 var(--mint-d), 0 10px 18px rgba(0,0,0,.14);
  animation: skx-nudge 5s 2s ease-in-out infinite;
}
.skx-treasure-btn:active { box-shadow: 0 1px 0 var(--mint-d); }
.skx-treasure-btn.has-new::after {
  content: '✨'; position: absolute; top: -10px; right: -8px; font-size: 24px;
  animation: sk-wiggle 1s ease-in-out infinite;
}
.skx-treasure-btn.bump { animation: sk-bump .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes skx-nudge { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-10deg); } 94% { transform: rotate(9deg); } 97% { transform: rotate(-5deg); } }

/* ---------- home: floating buddy ---------- */
.skx-pet {
  --s: .66;
  position: absolute; left: max(10px, env(safe-area-inset-left)); bottom: max(10px, env(safe-area-inset-bottom)); z-index: 22;
  width: 120px; height: 120px; padding: 0; background: none; border-radius: 50%;
  display: flex; align-items: flex-end; justify-content: center;
}
.skx-pet::before {
  content: ''; position: absolute; left: 14%; right: 14%; bottom: 2px; height: 16px; border-radius: 50%;
  background: rgba(0,0,0,.18); filter: blur(2px);
}
.skx-pet img {
  position: relative; width: calc(100% * var(--s)); height: calc(100% * var(--s)); object-fit: contain;
  filter: drop-shadow(0 6px 4px rgba(0,0,0,.18));
  animation: skx-idle 2.4s ease-in-out infinite; transform-origin: 50% 100%;
}
.skx-pet.mood-sad img { filter: grayscale(.35) drop-shadow(0 6px 4px rgba(0,0,0,.18)); }
.skx-pet img.skx-hop { animation: skx-hop .7s cubic-bezier(.34,1.56,.64,1); }
.skx-pet-mood {
  position: absolute; top: 4px; right: 2px; font-size: 26px; line-height: 1;
  background: #fff; border-radius: 50%; padding: 4px; box-shadow: 0 3px 0 rgba(0,0,0,.12);
}
.skx-pet-say {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-30%);
  background: #fff; border-radius: 22px; padding: 6px 14px; font-size: 30px; line-height: 1;
  box-shadow: 0 5px 0 rgba(0,0,0,.12); animation: sk-pop .35s cubic-bezier(.34,1.56,.64,1);
}
body.in-game .skx-pet, body.skx-open .skx-pet { display: none; }
@keyframes skx-idle { 0%,100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-6px) scale(.98, 1.03); } }
@keyframes skx-hop { 0% { transform: none; } 35% { transform: translateY(-34px) rotate(-8deg) scale(1.08); } 70% { transform: translateY(0) scale(1.08, .9); } 100% { transform: none; } }

/* ---------- win popup extras ---------- */
.skx-winrow { display: flex; justify-content: center; gap: 10px; margin: 0 0 14px; animation: sk-rise .5s 1.4s both cubic-bezier(.34,1.56,.64,1); }
.skx-chip {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 4px 14px; font-size: 22px; font-weight: 800; line-height: 1.2;
  background: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.12);
}
.skx-chip.xp { background: #efeaff; color: var(--grape); box-shadow: 0 4px 0 #cfc6ff; }
.skx-chip.fire { background: #fff0e6; color: var(--coral-d); box-shadow: 0 4px 0 #ffd1b8; }
.skx-chip.lv { background: #fff7dc; color: #a26d00; box-shadow: 0 4px 0 #f5dc94; }
.skx-chip.ice { background: #e3f4ff; color: var(--sky); box-shadow: 0 4px 0 #b9e2ff; }

.skx-lucky {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 auto 14px; padding: 8px 22px; width: max-content; max-width: 100%;
  border-radius: 999px; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, #2ecc71, #00B894);
  box-shadow: 0 6px 0 #008f70, 0 0 0 4px #fff, 0 0 30px 6px rgba(46,204,113,.6);
  animation: skx-lucky-in .8s 1.6s both cubic-bezier(.34,1.56,.64,1);
}
.skx-lucky.skx-l3 { background: linear-gradient(135deg, #FDCB6E, #FF9F43); box-shadow: 0 6px 0 var(--sun-d), 0 0 0 4px #fff, 0 0 34px 8px rgba(253,203,110,.8); }
.skx-clover { font-size: 40px; animation: sk-spin 3s linear infinite; display: inline-block; }
.skx-x { font-size: 38px; text-shadow: 0 3px 0 rgba(0,0,0,.15); }
.skx-plus { font-size: 26px; background: rgba(255,255,255,.3); border-radius: 999px; padding: 2px 12px; }
@keyframes skx-lucky-in { 0% { transform: scale(0) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---------- toasts ---------- */
.skx-toast {
  position: fixed; top: max(14px, env(safe-area-inset-top)); left: 50%; z-index: 90;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
  padding: 10px 26px 10px 12px; border-radius: 999px; background: #fff;
  font-size: 26px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 7px 0 var(--sun-d), 0 16px 30px rgba(0,0,0,.25);
  animation: skx-drop .5s cubic-bezier(.34,1.56,.64,1);
}
.skx-toast b { overflow: hidden; text-overflow: ellipsis; }
.skx-toast.out { animation: skx-up .3s forwards; }
.skx-toast-i {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 36px;
  background: radial-gradient(circle at 35% 30%, #fff8dc, #FDCB6E); box-shadow: inset 0 -4px 0 rgba(0,0,0,.12);
}
.skx-toast.tier-bronze .skx-toast-i { background: radial-gradient(circle at 35% 30%, #ffe3c8, #d9894a); }
.skx-toast.tier-silver .skx-toast-i { background: radial-gradient(circle at 35% 30%, #fff, #b8c2d6); }
.skx-toast.tier-gold .skx-toast-i { background: radial-gradient(circle at 35% 30%, #fff6c8, #f5b800); }
@keyframes skx-drop { from { transform: translate(-50%, -140%); } to { transform: translate(-50%, 0); } }
@keyframes skx-up { to { transform: translate(-50%, -160%); opacity: 0; } }

/* ---------- big celebration (level up / mission / streak / buddy) ---------- */
.skx-cele {
  position: fixed; inset: 0; z-index: 85;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(circle at 50% 40%, rgba(108,92,231,.55), rgba(45,42,69,.8));
  animation: sk-fade .25s;
}
.skx-cele.out { animation: skx-fadeout .28s forwards; }
@keyframes skx-fadeout { to { opacity: 0; } }
.skx-c-card {
  position: relative; text-align: center; width: min(440px, 100%);
  background: radial-gradient(circle at 50% 0, #fff8dc, #fff 62%); border-radius: 44px; padding: 18px 24px 26px;
  box-shadow: 0 12px 0 var(--sun-d), 0 30px 60px rgba(0,0,0,.35);
  animation: sk-pop .55s cubic-bezier(.34,1.56,.64,1);
}
.skx-c-hero { position: relative; height: min(220px, 30vh); display: flex; align-items: center; justify-content: center; }
.skx-c-hero::before {
  content: ''; position: absolute; width: min(300px, 40vh); aspect-ratio: 1; border-radius: 50%;
  background: repeating-conic-gradient(rgba(253,203,110,.6) 0 12deg, rgba(255,255,255,0) 12deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 35%, transparent 70%); mask: radial-gradient(circle, #000 35%, transparent 70%);
  animation: sk-spin 10s linear infinite;
}
.skx-c-img { position: relative; max-height: 100%; max-width: 80%; filter: drop-shadow(0 8px 6px rgba(0,0,0,.18)); animation: sk-float-tilt 2.6s ease-in-out infinite; }
.skx-c-img.skx-grow { animation: skx-grow 1.2s cubic-bezier(.34,1.56,.64,1), sk-float-tilt 2.6s 1.2s ease-in-out infinite; }
@keyframes skx-grow { 0% { transform: scale(.55); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.skx-c-num {
  position: absolute; right: 12%; bottom: 0; width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center; font-size: 52px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--grape), var(--pink));
  box-shadow: 0 6px 0 var(--grape-d), 0 0 0 5px #fff;
  animation: sk-pop .6s .4s both cubic-bezier(.34,1.56,.64,1);
}
.skx-c-title { margin: 8px 0 4px; font-size: 44px; line-height: 1.1; color: var(--grape); text-shadow: 0 3px 0 rgba(108,92,231,.18); }
.skx-c-sub { min-height: 8px; margin-bottom: 16px; }
.skx-c-rank {
  display: inline-block; padding: 6px 22px; border-radius: 999px; color: #fff; font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 5px 0 rgba(0,0,0,.18);
}
.skx-c-bonus { display: inline-block; font-size: 40px; font-weight: 800; color: #a26d00; }
.skx-c-flame { position: relative; font-size: 150px; line-height: 1; animation: skx-flicker 1s ease-in-out infinite; }
.skx-c-flame b {
  position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%);
  font-size: 56px; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.3);
}
.skx-c-ok { width: 120px; height: 90px; font-size: 46px; }

/* ---------- the treasure room ---------- */
.skx-room {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column; align-items: center;
  padding: max(12px, env(safe-area-inset-top)) 16px 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.3) 0 90px, transparent 91px),
    radial-gradient(circle at 88% 85%, rgba(255,255,255,.22) 0 130px, transparent 131px),
    linear-gradient(160deg, #36c3a5, #0984E3 55%, #6C5CE7);
  animation: sk-fade .25s;
}
.skx-head { width: 100%; max-width: 1100px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.skx-close {
  width: 72px; height: 72px; border-radius: 50%; flex: none;
  background: var(--coral); color: #fff; font-size: 34px; font-weight: 900; line-height: 1;
  box-shadow: 0 7px 0 var(--coral-d), 0 12px 20px rgba(0,0,0,.2); transition: transform .1s;
}
.skx-close:active { transform: translateY(6px); box-shadow: 0 1px 0 var(--coral-d); }
.skx-title {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  background: #fff; border-radius: 999px; padding: 6px 22px 6px 14px;
  font-size: 30px; font-weight: 800; color: var(--grape);
  box-shadow: 0 6px 0 var(--mint-d), 0 10px 18px rgba(0,0,0,.15);
}
.skx-title span { font-size: 36px; }
.skx-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.skx-tabs {
  width: 100%; max-width: 1100px; margin-top: 10px; padding: 10px 6px 12px;
  display: flex; gap: 10px; justify-content: center;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.skx-tabs::-webkit-scrollbar { display: none; }
.skx-tab {
  flex: none; width: 92px; height: 86px; border-radius: 26px; scroll-snap-align: center;
  background: rgba(255,255,255,.88); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  box-shadow: 0 6px 0 rgba(0,0,0,.18); transition: transform .12s;
}
.skx-tab .i { font-size: 40px; line-height: 1.05; }
.skx-tab .n { font-size: 16px; font-weight: 800; opacity: .75; }
.skx-tab:active { transform: translateY(5px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.skx-tab.on { background: var(--sun); transform: translateY(-4px) scale(1.06); box-shadow: 0 8px 0 var(--sun-d), 0 0 0 4px #fff; }
.skx-tab.on .n { opacity: 1; }

.skx-panel {
  position: relative; flex: 1; min-height: 0; width: 100%; max-width: 1100px;
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  background: rgba(255,255,255,.94); border-radius: 36px 36px 0 0;
  padding: 22px 20px max(28px, env(safe-area-inset-bottom));
  box-shadow: 0 -6px 0 rgba(255,255,255,.4) inset;
}
.skx-room.tab-sparks .skx-panel { padding: 0; background: #2D2A45; overflow: hidden; }

.skx-sub { text-align: center; margin: 0 0 14px; }
.skx-sub b {
  display: inline-block; padding: 4px 22px; border-radius: 999px; font-size: 30px;
  background: #fff7dc; color: #a26d00; box-shadow: 0 5px 0 #f5dc94;
}
.skx-bounce { animation: sk-bump .5s cubic-bezier(.34,1.56,.64,1); }
.skx-nope { animation: sk-shake .45s; }
.skx-loading { font-size: 90px; text-align: center; padding-top: 18vh; animation: sk-float 1.4s ease-in-out infinite; }

/* progress bar */
.skx-bar {
  position: relative; height: 34px; border-radius: 999px; background: #ece9ff; overflow: hidden;
  box-shadow: inset 0 3px 0 rgba(0,0,0,.08);
}
.skx-bar.big { height: 44px; }
.skx-bar i {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; min-width: 34px;
  background: linear-gradient(90deg, var(--grape), var(--pink));
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.12), inset 0 5px 0 rgba(255,255,255,.25);
  transition: width .8s cubic-bezier(.34,1.56,.64,1);
}
.skx-bar span { position: relative; display: block; text-align: center; font-weight: 800; font-size: 20px; line-height: 34px; color: var(--ink); }
.skx-bar.big span { line-height: 44px; font-size: 24px; }

/* ---- ⭐ Me ---- */
.skx-me { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; }
.skx-badge-big {
  position: relative; width: 190px; height: 190px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.55), transparent 45%), linear-gradient(135deg, var(--a), var(--b));
  box-shadow: 0 10px 0 rgba(0,0,0,.18), 0 0 0 8px #fff, 0 18px 30px rgba(0,0,0,.18);
  animation: sk-pop .5s cubic-bezier(.34,1.56,.64,1);
}
.skx-rank-i { font-size: 96px; line-height: 1; display: block; filter: drop-shadow(0 5px 0 rgba(0,0,0,.15)); }
.skx-lv {
  position: absolute; right: -10px; bottom: -6px; width: 78px; height: 78px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff; color: var(--grape); font-size: 36px; font-weight: 800; line-height: .9;
  box-shadow: 0 5px 0 rgba(0,0,0,.15);
}
.skx-lv small { font-size: 12px; letter-spacing: 1px; opacity: .7; }
.skx-me-info { flex: 1; min-width: 260px; max-width: 520px; display: flex; flex-direction: column; gap: 14px; }
.skx-rank-name { font-size: 46px; font-weight: 800; line-height: 1; color: var(--grape); text-align: center; }
.skx-next { text-align: center; font-size: 24px; font-weight: 800; color: rgba(45,42,69,.7); }
.skx-next span { font-size: 30px; }
.skx-next b { background: #efeaff; color: var(--grape); border-radius: 999px; padding: 0 12px; }
.skx-ladder {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 26px auto 18px; max-width: 760px;
}
.skx-rung {
  width: 72px; height: 80px; border-radius: 22px; padding: 4px 0 0;
  background: #eceaf5; filter: grayscale(1); opacity: .55;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 5px 0 rgba(0,0,0,.12);
}
.skx-rung span { font-size: 36px; line-height: 1; }
.skx-rung small { font-size: 15px; font-weight: 800; }
.skx-rung.got { filter: none; opacity: 1; background: linear-gradient(135deg, var(--a), var(--b)); color: #fff; }
.skx-rung.now { transform: scale(1.12); box-shadow: 0 6px 0 rgba(0,0,0,.2), 0 0 0 4px var(--sun); }
.skx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 760px; margin: 0 auto; }
.skx-stat {
  --c: var(--sun); min-height: 96px; border-radius: 26px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 6px 0 var(--c), 0 10px 18px rgba(0,0,0,.08); border: 3px solid var(--c);
}
.skx-stat span { font-size: 38px; line-height: 1.1; }
.skx-stat b { font-size: 28px; line-height: 1.1; }
.skx-stat.mint { --c: var(--mint); } .skx-stat.pink { --c: var(--pink); } .skx-stat.green { --c: #2ecc71; }

/* ---- 🏆 Trophies ---- */
.skx-trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.skx-trophy {
  --t1: #ffe3c8; --t2: #d9894a; --t3: #a85a20;
  background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px;
  animation: sk-rise .5s both cubic-bezier(.34,1.56,.64,1);
}
.skx-trophy.tier-silver { --t1: #fff; --t2: #b8c2d6; --t3: #7d89a3; }
.skx-trophy.tier-gold { --t1: #fff6c8; --t2: #f5b800; --t3: #b57f00; }
.skx-medal {
  position: relative; width: 124px; height: 124px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, var(--t1), var(--t2) 70%);
  box-shadow: 0 8px 0 var(--t3), inset 0 0 0 8px rgba(255,255,255,.45), 0 14px 22px rgba(0,0,0,.15);
}
.skx-medal .i { font-size: 62px; line-height: 1; filter: drop-shadow(0 4px 0 rgba(0,0,0,.15)); }
.skx-trophy.got .skx-medal::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
  background-size: 250% 100%; animation: skx-shine 3s ease-in-out infinite;
}
.skx-trophy:not(.got) .skx-medal { filter: grayscale(1); opacity: .45; }
.skx-trophy .lock { position: absolute; right: -4px; bottom: -4px; font-size: 34px; filter: none; }
.skx-trophy .n { font-size: 20px; font-weight: 800; line-height: 1.1; text-align: center; }
.skx-trophy:not(.got) .n { opacity: .45; }
@keyframes skx-shine { 0%, 40% { background-position: 150% 0; } 80%, 100% { background-position: -50% 0; } }

/* ---- 🔥 Streak ---- */
.skx-streak { display: flex; align-items: center; justify-content: center; gap: 18px; }
.skx-flame {
  position: relative; width: 210px; height: 210px; background: none; padding: 0;
  font-size: 170px; line-height: 1; filter: grayscale(1) opacity(.45);
}
.skx-flame.hot { filter: drop-shadow(0 8px 12px rgba(255,120,0,.45)); animation: skx-flicker 1.2s ease-in-out infinite; }
.skx-flame b {
  position: absolute; right: 0; bottom: 6px; min-width: 84px; height: 84px; padding: 0 10px; border-radius: 999px;
  display: grid; place-items: center; font-size: 50px; line-height: 1; color: #fff;
  background: linear-gradient(135deg, #FF9F43, #E17055); box-shadow: 0 6px 0 var(--coral-d), 0 0 0 5px #fff;
}
.skx-flame:not(.hot) b { filter: none; }
.skx-hint { font-size: 56px; }
.skx-hint.risk { animation: sk-wiggle 1s ease-in-out infinite; }
@keyframes skx-flicker { 0%,100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.05, 1.08) rotate(2deg); } }
.skx-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; max-width: 640px; margin: 18px auto; }
.skx-day {
  aspect-ratio: 3 / 4; border-radius: 22px; background: #eceaf5; min-height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 5px 0 rgba(0,0,0,.1);
}
.skx-day .f { font-size: 34px; line-height: 1.1; min-height: 36px; }
.skx-day small { font-size: 18px; font-weight: 800; opacity: .6; }
.skx-day.done { background: linear-gradient(#ffe2c4, #ffb37a); box-shadow: 0 5px 0 #e8894a; }
.skx-day.frozen { background: linear-gradient(#e6f6ff, #9fd8ff); box-shadow: 0 5px 0 #6cbcef; }
.skx-day.today { outline: 4px dashed var(--coral); outline-offset: -4px; }
.skx-day.today.done { outline: 4px solid #fff; }
.skx-freeze { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px 0 16px; }
.skx-ice {
  display: flex; align-items: center; gap: 6px; padding: 6px 22px; min-height: 64px; border-radius: 999px;
  background: #e3f4ff; color: var(--sky); font-size: 40px; box-shadow: 0 5px 0 #9fd0f5;
}
.skx-ice b { font-size: 28px; }
.skx-ice .used { filter: grayscale(1); opacity: .4; }
.skx-ms-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.skx-ms {
  min-width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-size: 24px; font-weight: 800; background: #eceaf5; color: rgba(45,42,69,.45);
  box-shadow: 0 5px 0 rgba(0,0,0,.1);
}
.skx-ms.got { background: linear-gradient(135deg, #FF9F43, #E17055); color: #fff; box-shadow: 0 5px 0 var(--coral-d); }
.skx-ms.next { outline: 4px dashed var(--coral); outline-offset: 3px; color: var(--coral); }

/* ---- 🎯 Mission ---- */
.skx-tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin: 0 auto; }
.skx-task {
  --c: var(--pink); --d: var(--pink-d);
  position: relative; aspect-ratio: 1; border-radius: 32px; padding: 10px;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.45), transparent 60%), var(--c);
  box-shadow: 0 9px 0 var(--d), 0 14px 22px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center;
  animation: sk-rise .5s both cubic-bezier(.34,1.56,.64,1);
}
.skx-task.play { --c: var(--sky); --d: var(--sky-d); }
.skx-task.quiz { --c: var(--grape); --d: var(--grape-d); }
.skx-task img { width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 6px 4px rgba(0,0,0,.2)); }
.skx-task .e {
  position: absolute; left: 8px; top: 8px; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; font-size: 32px; box-shadow: 0 4px 0 rgba(0,0,0,.15);
}
.skx-task .tick {
  position: absolute; right: -8px; bottom: -8px; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; font-size: 34px; font-weight: 900;
  background: #fff; color: rgba(45,42,69,.4); box-shadow: 0 5px 0 rgba(0,0,0,.15);
}
.skx-task.done .tick { background: var(--mint); color: #fff; box-shadow: 0 5px 0 var(--mint-d), 0 0 0 4px #fff; animation: sk-pop .5s cubic-bezier(.34,1.56,.64,1); }
.skx-task.done img { opacity: .75; }
.skx-task:active { transform: translateY(7px); box-shadow: 0 2px 0 var(--d); }
.skx-bonus {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 26px auto 0; padding: 10px 30px 10px 14px; min-height: 96px; border-radius: 999px;
  background: #fff7dc; box-shadow: 0 7px 0 #f5dc94; filter: grayscale(.5); opacity: .8;
}
.skx-bonus img { width: 80px; height: 80px; object-fit: contain; }
.skx-bonus b { font-size: 36px; color: #a26d00; }
.skx-bonus.ready, .skx-bonus.claimed { filter: none; opacity: 1; }
.skx-bonus.ready { animation: sk-wiggle 1s ease-in-out infinite; }

/* ---- 🛍️ Shop ---- */
.skx-shop-head {
  position: sticky; top: -22px; z-index: 3; margin: -22px -20px 8px; padding: 12px 14px 10px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.97); border-radius: 36px 36px 0 0; box-shadow: 0 6px 12px rgba(0,0,0,.06);
}
.skx-gchips { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; }
.skx-gchips::-webkit-scrollbar { display: none; }
.skx-gchip {
  flex: none; width: 64px; height: 64px; border-radius: 20px; font-size: 32px;
  background: #f1efff; box-shadow: 0 5px 0 #d8d4f0;
}
.skx-gchip:active { transform: translateY(4px); box-shadow: 0 1px 0 #d8d4f0; }
.skx-owned { flex: none; font-size: 22px; font-weight: 800; background: #e6fff6; color: var(--mint-d); border-radius: 999px; padding: 6px 14px; }
.skx-group { margin-bottom: 18px; }
.skx-group h3 {
  display: flex; align-items: center; gap: 10px; margin: 8px 4px 12px; font-size: 26px; color: var(--grape);
}
.skx-group h3 span { font-size: 34px; }
.skx-group h3 small { margin-left: auto; font-size: 20px; color: rgba(45,42,69,.55); }
.skx-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; }
.skx-item {
  position: relative; aspect-ratio: 1; border-radius: 26px; padding: 12px 12px 26px;
  background: #fff; border: 3px solid #ece9ff;
  box-shadow: 0 6px 0 #d8d4f0, 0 10px 16px rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: center;
}
.skx-item img { width: 100%; height: 100%; object-fit: contain; }
.skx-item.buddy { background: linear-gradient(#fff, #fff4fa); }
.skx-item.locked img { filter: grayscale(1) brightness(1.15); opacity: .4; }
.skx-item:not(.owned):not(.can):not(.locked) img { opacity: .8; }
.skx-item.can { border-color: var(--sun); box-shadow: 0 6px 0 var(--sun-d), 0 10px 16px rgba(0,0,0,.06); }
.skx-item.owned { border-color: var(--mint); box-shadow: 0 6px 0 var(--mint-d); background: linear-gradient(#fff, #e9fff7); }
.skx-item.worn { box-shadow: 0 6px 0 var(--mint-d), 0 0 0 5px #fff, 0 0 0 9px var(--mint); }
.skx-item .tag {
  position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%);
  white-space: nowrap; border-radius: 999px; padding: 2px 12px; font-size: 20px; font-weight: 800;
  background: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.12);
}
.skx-item .tag.cost { background: var(--sun); color: var(--ink); }
.skx-item .tag.lock { background: #eceaf5; color: rgba(45,42,69,.6); }
.skx-item .tag.ok, .skx-item .tag.worn { background: var(--mint); color: #fff; font-size: 22px; }
.skx-item:active { transform: translateY(5px); }

.skx-ask {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(45,42,69,.55); animation: sk-fade .2s;
}
.skx-ask-card {
  width: min(380px, 100%); background: radial-gradient(circle at 50% 0, #fff8dc, #fff 60%);
  border-radius: 40px; padding: 22px 22px 26px; text-align: center;
  box-shadow: 0 12px 0 var(--sun-d), 0 30px 60px rgba(0,0,0,.3);
  animation: sk-pop .45s cubic-bezier(.34,1.56,.64,1);
}
.skx-ask-card img { width: min(200px, 26vh); height: min(200px, 26vh); object-fit: contain; animation: sk-float-tilt 2.6s ease-in-out infinite; }
.skx-ask-cost { font-size: 44px; font-weight: 800; margin: 6px 0 18px; }
.skx-ask-btns { display: flex; justify-content: center; gap: 22px; }
.skx-ask-btns .sk-btn { width: 110px; height: 92px; font-size: 44px; }

/* ---- 🐣 Buddy ---- */
.skx-egg { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 4vh; }
.skx-egg-i { font-size: 170px; line-height: 1; background: none; animation: sk-wiggle 1.6s ease-in-out infinite; }
.skx-go-shop { font-size: 34px; }
.skx-buddy { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; }
.skx-buddy-stage {
  position: relative; width: 250px; height: 250px; border-radius: 50%; flex: none; padding: 16px;
  display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(circle at 50% 85%, #c8f7d8 0 32%, transparent 33%), radial-gradient(circle at 50% 40%, #fff, #e8f7ff);
  box-shadow: 0 10px 0 rgba(0,0,0,.12), 0 0 0 8px #fff;
}
.skx-buddy.mood-happy .skx-buddy-stage { box-shadow: 0 10px 0 rgba(0,0,0,.12), 0 0 0 8px var(--mint); }
.skx-buddy.mood-ok .skx-buddy-stage { box-shadow: 0 10px 0 rgba(0,0,0,.12), 0 0 0 8px var(--sun); }
.skx-buddy.mood-sad .skx-buddy-stage { box-shadow: 0 10px 0 rgba(0,0,0,.12), 0 0 0 8px var(--coral); }
.skx-buddy.mood-sad .skx-buddy-stage img { filter: grayscale(.35); }
.skx-buddy-stage img { object-fit: contain; animation: skx-idle 2.4s ease-in-out infinite; transform-origin: 50% 100%; transition: width .6s, height .6s; }
.skx-mood {
  position: absolute; right: 4px; top: 4px; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; font-size: 40px; background: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.12);
}
.skx-buddy-info { flex: 1; min-width: 260px; max-width: 460px; display: flex; flex-direction: column; gap: 16px; }
.skx-buddy-name { font-size: 44px; font-weight: 800; color: var(--grape); text-align: center; line-height: 1; }
.skx-stages { display: flex; align-items: flex-end; justify-content: center; gap: 18px; }
.skx-stg { font-size: calc(70px * var(--s)); line-height: 1; filter: grayscale(1); opacity: .4; }
.skx-stg.got { filter: none; opacity: 1; }
.skx-stg.now { animation: sk-float 1.6s ease-in-out infinite; }
.skx-mine { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.skx-mine-i {
  width: 84px; height: 84px; border-radius: 24px; padding: 8px; background: #fff; font-size: 40px;
  border: 3px solid #ece9ff; box-shadow: 0 5px 0 #d8d4f0;
}
.skx-mine-i img { width: 100%; height: 100%; object-fit: contain; }
.skx-mine-i.on { border-color: var(--mint); box-shadow: 0 5px 0 var(--mint-d), 0 0 0 4px #fff, 0 0 0 7px var(--mint); }

/* ---- ✨ Sparks ---- */
.skx-feed {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none;
}
.skx-feed::-webkit-scrollbar { display: none; }
.skx-spark {
  position: relative; height: 100%; width: 100%; overflow: hidden;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; color: #fff;
  background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.22), transparent 45%), linear-gradient(150deg, var(--a), var(--b));
}
.skx-sp-bg { position: absolute; right: -40px; top: -40px; font-size: 220px; opacity: .15; line-height: 1; pointer-events: none; }
.skx-spark header { position: relative; display: flex; align-items: center; gap: 8px; padding: 16px 64px 0 18px; }
.skx-sp-chip { background: #fff; color: var(--ink); border-radius: 999px; padding: 4px 16px; font-size: 20px; font-weight: 800; box-shadow: 0 4px 0 rgba(0,0,0,.15); white-space: nowrap; }
.skx-sp-n { margin-left: auto; font-weight: 800; font-size: 18px; opacity: .8; }
.skx-sp-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 12px 26px; text-align: center; }
.skx-sp-say {
  width: 72px; height: 72px; border-radius: 50%; font-size: 36px; background: rgba(255,255,255,.25);
  box-shadow: 0 5px 0 rgba(0,0,0,.15);
}
.skx-sp-text { margin: 0; max-width: 720px; font-size: clamp(26px, 4.2vw, 42px); font-weight: 800; line-height: 1.25; text-shadow: 0 3px 0 rgba(0,0,0,.15); overflow-wrap: anywhere; }
.skx-sp-show { font-size: 40px; min-width: 120px; }
.skx-sp-rev { max-width: 640px; background: rgba(255,255,255,.22); border-radius: 26px; padding: 14px 22px; font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; }
.skx-spark footer { position: relative; text-align: center; padding: 6px 0 18px; font-size: 44px; }
.skx-sp-up { display: inline-block; animation: sk-float 1.2s ease-in-out infinite; }
.skx-dots {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 2;
  display: flex; flex-direction: column; gap: 6px; pointer-events: none;
}
.skx-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.35); transition: transform .2s; }
.skx-dots i.seen { background: rgba(255,255,255,.75); }
.skx-dots i.now { background: var(--sun); transform: scale(1.5); }

/* ---------- small screens ---------- */
@media (max-width: 600px) {
  .skx-treasure-btn { width: 60px; height: 60px; font-size: 32px; }
  .sk-topbar .sk-top-right { gap: 8px; }
  .skx-pet { width: 100px; height: 100px; }
  .skx-room { padding-left: 10px; padding-right: 10px; }
  .skx-close { width: 64px; height: 64px; font-size: 30px; }
  .skx-title { font-size: 24px; padding: 4px 16px 4px 10px; }
  .skx-title span { font-size: 28px; }
  .skx-room .sk-star-pill { font-size: 22px; padding: 4px 14px 4px 10px; }
  .skx-tabs { justify-content: flex-start; margin-top: 12px; gap: 8px; }
  .skx-tab { width: 72px; height: 76px; border-radius: 22px; }
  .skx-tab .i { font-size: 34px; }
  .skx-tab .n { font-size: 14px; }
  .skx-panel { padding: 18px 14px max(24px, env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; }
  .skx-shop-head { top: -18px; margin: -18px -14px 8px; border-radius: 30px 30px 0 0; }
  .skx-badge-big { width: 150px; height: 150px; }
  .skx-rank-i { font-size: 76px; }
  .skx-lv { width: 66px; height: 66px; font-size: 30px; }
  .skx-rank-name { font-size: 36px; }
  .skx-me { gap: 18px; }
  .skx-ladder { gap: 8px; margin: 22px auto 16px; }
  .skx-rung { width: 64px; height: 72px; }
  .skx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skx-trophies { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .skx-medal { width: 112px; height: 112px; }
  .skx-flame { width: 170px; height: 170px; font-size: 140px; }
  .skx-flame b { font-size: 40px; min-width: 68px; height: 68px; }
  .skx-strip { gap: 5px; }
  .skx-day { border-radius: 16px; }
  .skx-day .f { font-size: 26px; min-height: 28px; }
  .skx-day small { font-size: 15px; }
  .skx-tasks { gap: 12px; }
  .skx-task { border-radius: 24px; padding: 6px; }
  .skx-task .e { width: 40px; height: 40px; font-size: 22px; left: 4px; top: 4px; }
  .skx-task .tick { width: 48px; height: 48px; font-size: 26px; right: -6px; bottom: -6px; }
  .skx-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .skx-item { border-radius: 20px; padding: 8px 8px 22px; }
  .skx-item .tag { font-size: 17px; padding: 1px 9px; }
  .skx-buddy-stage { width: 210px; height: 210px; }
  .skx-buddy-name { font-size: 36px; }
  .skx-toast { font-size: 22px; padding-right: 20px; }
  .skx-toast-i { width: 56px; height: 56px; font-size: 30px; }
  .skx-c-title { font-size: 36px; }
  .skx-winrow .skx-chip { font-size: 19px; padding: 3px 11px; }
}
@media (max-width: 380px) {
  .skx-title b { display: none; }
}
@media (max-height: 700px) and (min-width: 601px) {
  .skx-tabs { margin-top: 10px; }
  .skx-tab { height: 72px; }
  .skx-tab .i { font-size: 32px; }
}

/* 👒 Supi outfits (3D Supi pehenta hai) */
.skx-item.outfit { background: linear-gradient(#fff, #efeaff); }
.skx-item.outfit img { padding: 6%; }

