/* Grout Bhar Denge lobby: top bar, 4 pages (home / saaman / dukaan / games), tab bar.
   Sticker style: thick ink outlines + hard shadows, warm orange stage, dark inventory panels. */
.lobby { display: flex; flex-direction: column; padding: 0 !important; justify-content: flex-start !important; align-items: stretch !important; overflow: hidden; }
.lobby > * { align-self: stretch; }
.lobby .rays { position: absolute; inset: 0; }
body.in-lobby #cad-banner { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
body.lobby-modal #cad-banner { display: none; }

/* ---------- top bar ---------- */
.lb-top { position: relative; z-index: 3; display: flex; align-items: center; gap: 8px; padding: calc(10px + var(--safe-top)) 12px 6px; }
.rk-badge { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; background: none; padding: 0; text-align: left; }
.rk-shield { position: relative; width: 44px; height: 50px; flex: none; filter: drop-shadow(0 3px 0 #1b1b2f); }
.rk-shield svg { width: 100%; height: 100%; }
.rk-shield b { position: absolute; inset: 0 0 4px; display: grid; place-items: center; font-size: 20px; color: #fff; -webkit-text-stroke: 4px #1b1b2f; paint-order: stroke fill; }
.rk-xp { flex: 1; min-width: 0; margin-left: -10px; }
.rk-xp b { display: block; margin-left: 14px; font-size: 14px; line-height: 1; color: #fff; -webkit-text-stroke: 4px #1b1b2f; paint-order: stroke fill; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xpbar { position: relative; display: block; height: 20px; margin-top: 2px; border-radius: 0 12px 12px 0; background: #1b1b2f; border: 3px solid #1b1b2f; overflow: hidden; }
.xpbar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(180deg, #b6f04a, #4cb81a); border-radius: 0 9px 9px 0; transition: width .6s cubic-bezier(.2,1.4,.4,1); }
.xpbar i::after { content: ''; position: absolute; left: 4px; right: 6px; top: 2px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.45); }
.xpbar em { position: relative; display: block; padding-left: 14px; font-style: normal; font-weight: 800; font-size: 11.5px; line-height: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-pill.big { height: 38px; font-size: 18px; padding: 0 12px 0 6px; }
.coin-pill.big .coin-ico { width: 26px; height: 26px; }

/* ---------- pages ---------- */
.pages { position: relative; z-index: 2; flex: 1; min-height: 0; width: 100%; }
.page { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 14px 190px; display: none; flex-direction: column; align-items: center; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.page.on { display: flex; animation: pageIn .3s cubic-bezier(.2,1.3,.4,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* home */
#pg-home .logo { margin: 2px 0 0; transform: scale(.82); transform-origin: top center; }
#pg-home .tag { margin-top: -10px; }
.stage { position: relative; width: 190px; height: 160px; margin-top: 2px; display: grid; place-items: end center; }
.stage-disc { position: absolute; bottom: 4px; width: 170px; height: 46px; border-radius: 50%; background: radial-gradient(ellipse, #fff5cf 0%, #ffcf6a 60%, rgba(255,160,40,0) 72%); }
.stage .title-mistri { position: relative; height: 150px !important; width: auto !important; margin: 0 !important; }
.big-btn.khelo { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(300px, 82vw); height: 78px; margin-top: 4px; line-height: .9; }
.big-btn.khelo span { font-size: 38px; }
.big-btn.khelo small { font-size: 14px; letter-spacing: 1px; opacity: .9; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin-top: 12px; padding: 0 14px; border-radius: 18px; background: #fff8e7; border: 3px solid #1b1b2f; box-shadow: 0 3px 0 #1b1b2f; font-weight: 800; font-size: 15px; }
.chip-btn svg { width: 18px; height: 18px; }
.chip-btn:active { transform: translateY(3px); box-shadow: 0 0 0 #1b1b2f; }

/* Monsoon Raat hero card */
.mr-card { position: relative; flex: none; width: min(380px, 100%); height: 150px; margin-top: 16px; border-radius: 22px; overflow: hidden; border: 4px solid #1b1b2f; box-shadow: 0 6px 0 #1b1b2f, 0 0 0 0 rgba(140,110,255,.6); text-align: left; padding: 0; background: #2b2a7a; animation: mrPulse 2.4s ease-in-out infinite; }
@keyframes mrPulse { 50% { box-shadow: 0 6px 0 #1b1b2f, 0 0 26px 2px rgba(140,110,255,.6); } }
.mr-card:active { transform: translateY(4px); box-shadow: 0 2px 0 #1b1b2f; }
.mr-art { position: absolute; inset: 0; background: url('../img/items/logo.webp') center 38% / cover no-repeat; }
.mr-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,14,60,.92) 0%, rgba(20,14,60,.6) 48%, rgba(20,14,60,.05) 75%), linear-gradient(0deg, rgba(20,14,60,.5), transparent 40%); }
.mr-rain { position: absolute; inset: -40px 0 0; background-image: linear-gradient(105deg, transparent 47%, rgba(190,210,255,.5) 49%, transparent 51%); background-size: 22px 34px; animation: rainfall .5s linear infinite; opacity: .55; pointer-events: none; }
@keyframes rainfall { to { transform: translate(-6px, 34px); } }
.mr-shine { position: absolute; top: 0; bottom: 0; width: 35%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: mrShine 3s 1s ease-in-out infinite; }
@keyframes mrShine { 0%, 55% { left: -50%; } 100% { left: 130%; } }
.mr-new { position: absolute; top: 10px; left: 12px; padding: 1px 9px; border-radius: 8px; background: #ff2d6f; border: 2px solid #fff; color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .5px; }
.mr-txt { position: absolute; left: 12px; top: 34px; right: 120px; color: #fff; }
.mr-txt b { display: block; font-size: 27px; line-height: .95; -webkit-text-stroke: 6px #1b1b2f; paint-order: stroke fill; text-shadow: 0 3px 0 #1b1b2f; }
.mr-txt small { display: block; margin-top: 4px; font-weight: 700; font-size: 12px; line-height: 1.15; color: #d9d2ff; }
.mr-chips { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.mr-chips i { font-style: normal; padding: 0 7px; border-radius: 7px; background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.35); font-weight: 800; font-size: 10.5px; }
.mr-go { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px; border-radius: 22px; background: linear-gradient(180deg, #ffa24a, #ff2d6f); border: 3px solid #fff; color: #fff; font-weight: 800; font-size: 18px; -webkit-text-stroke: 4px #9e123e; paint-order: stroke fill; box-shadow: 0 4px 0 #1b1b2f, 0 0 18px rgba(255,60,120,.6); }
.mr-go svg { width: 18px; height: 18px; }
.mr-bug { position: absolute; right: 96px; bottom: -6px; width: 64px; transform: scaleX(-1); animation: bugHop 1.4s ease-in-out infinite; filter: drop-shadow(0 4px 2px rgba(0,0,0,.4)); }
@keyframes bugHop { 0%, 100% { transform: scaleX(-1) translateY(0) rotate(0); } 40% { transform: scaleX(-1) translateY(-10px) rotate(-8deg); } }
.mr-card.tall { height: 230px; }
.mr-card.tall .mr-txt { top: auto; bottom: 64px; right: 14px; }

/* ---------- saaman (equipment) ---------- */
.eq-stage { position: relative; width: 100%; max-width: 400px; display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; gap: 4px; margin-top: 4px; }
.eq-col { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.eq-hero { position: relative; display: grid; place-items: end center; height: 260px; }
.eq-hero img { position: relative; height: 230px; filter: drop-shadow(0 8px 0 rgba(27,27,47,.25)); animation: idle 2.4s ease-in-out infinite; }
@keyframes idle { 50% { transform: translateY(-4px) scale(1.01); } }
.eq-disc { position: absolute; bottom: 0; width: 150px; height: 40px; border-radius: 50%; background: radial-gradient(ellipse, rgba(27,27,47,.35), rgba(27,27,47,0) 70%); }
.slot { position: relative; width: 78px; height: 78px; border-radius: 16px; border: 3px solid #1b1b2f; box-shadow: 0 4px 0 #1b1b2f; display: grid; place-items: center; padding: 0; background: var(--rb, #3b3f5c); }
.slot img { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }
.slot .lv { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 0 6px; border-radius: 7px; background: #1b1b2f; color: #fff; font-weight: 800; font-size: 11px; line-height: 16px; white-space: nowrap; }
.slot .rl { position: absolute; left: 4px; bottom: 0; font-weight: 800; font-size: 20px; color: #fff; -webkit-text-stroke: 4px #1b1b2f; paint-order: stroke fill; font-style: italic; }
.slot.empty { background: rgba(27,27,47,.22); border-style: dashed; box-shadow: none; }
.slot.empty svg { width: 34px; height: 34px; opacity: .55; }
.slot.empty small { position: absolute; bottom: 4px; font-weight: 800; font-size: 10px; color: #1b1b2f; opacity: .7; }
.r-S { --rb: linear-gradient(160deg, #ffe36a, #ff9f1c); } .r-A { --rb: linear-gradient(160deg, #c08bff, #7b4dff); }
.r-B { --rb: linear-gradient(160deg, #7fd8ff, #2a7ef0); } .r-C { --rb: linear-gradient(160deg, #9ee6c8, #3fae8a); }
.eq-stats { display: flex; gap: 8px; margin: 10px 0 12px; }
.eq-stats > div { display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px; border-radius: 12px; background: #1b1b2f; color: #ffcf6a; font-weight: 800; font-size: 12.5px; }
.eq-stats b { color: #fff; font-size: 16px; }
.eq-stats svg, .eq-stats .coin-ico { width: 20px; height: 20px; }
.inv-panel { width: calc(100% + 28px); margin: 0 -14px; padding: 12px 14px 16px; min-height: 340px; background: #262a45; border-top: 4px solid #1b1b2f; border-radius: 24px 24px 0 0; }
.inv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.inv-head b { color: #fff; font-size: 22px; -webkit-text-stroke: 5px #1b1b2f; paint-order: stroke fill; }
.inv-filters { display: flex; gap: 4px; }
.inv-filters button { height: 30px; padding: 0 10px; border-radius: 10px; background: #3a3f62; color: #b9bfe3; font-weight: 800; font-size: 13px; border: 2px solid #1b1b2f; }
.inv-filters button.on { background: #ffd23f; color: #1b1b2f; box-shadow: 0 3px 0 #1b1b2f; }
.inv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.inv-grid .slot { width: 100%; height: auto; aspect-ratio: 1; }
.inv-grid .slot img { width: 76%; height: 76%; }
.inv-grid .slot.locked { background: #343858; box-shadow: 0 4px 0 #1b1b2f; }
.inv-grid .slot.locked img { filter: brightness(0) opacity(.35); }
.inv-grid .slot.locked .lv { background: #555b82; }
.inv-grid .slot.on::after { content: ''; position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; background: #06d6a0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center/80% no-repeat; border: 2px solid #1b1b2f; }

/* item detail sheet */
.item-sheet { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(15,12,35,.6); }
.is-card { position: relative; width: min(320px, 88vw); padding: 18px 16px 16px; border-radius: 26px; background: #fff8e7; border: 4px solid #1b1b2f; box-shadow: 0 8px 0 #1b1b2f; text-align: center; animation: pageIn .35s cubic-bezier(.2,1.6,.4,1); }
.is-x { position: absolute; top: -14px; right: -14px; width: 42px; height: 42px; border-radius: 50%; background: #ef476f; color: #fff; font-weight: 800; font-size: 18px; border: 3px solid #1b1b2f; box-shadow: 0 3px 0 #1b1b2f; }
.is-top { position: relative; width: 150px; height: 150px; margin: 0 auto 8px; border-radius: 26px; border: 4px solid #1b1b2f; box-shadow: 0 5px 0 #1b1b2f; background: var(--rb); display: grid; place-items: center; }
.is-top img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 6px 4px rgba(0,0,0,.35)); animation: idle 2s ease-in-out infinite; }
.is-rar { position: absolute; left: 8px; top: 2px; font-size: 34px; font-weight: 800; font-style: italic; color: #fff; -webkit-text-stroke: 6px #1b1b2f; paint-order: stroke fill; }
.is-lv { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); padding: 0 10px; border-radius: 9px; background: #1b1b2f; color: #fff; font-weight: 800; font-size: 14px; }
.is-name { display: block; margin-top: 14px; font-size: 24px; line-height: 1; }
.is-slot { display: block; margin-top: 2px; font-weight: 700; color: #7a6a5a; }
.is-stats { margin: 10px 0 12px; display: grid; gap: 6px; }
.is-stats div { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; border-radius: 12px; background: #262a45; color: #ffcf6a; font-weight: 800; font-size: 14px; }
.is-stats div b { color: #fff; font-size: 17px; } .is-stats div b em { font-style: normal; color: #7dff8a; margin-left: 4px; }
.is-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.is-btns .big-btn { width: 100%; height: 56px; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.big-btn.green { background: #06d6a0; } .big-btn.yellow { background: #ffd23f; color: #1b1b2f; }
.big-btn:disabled { filter: grayscale(.8); opacity: .7; }

/* ---------- dukaan ---------- */
.peti-card { position: relative; width: 100%; max-width: 400px; margin-top: 6px; padding: 14px 14px 16px; border-radius: 26px; overflow: hidden; background: linear-gradient(160deg, #7b4dff, #4b2bc2); border: 4px solid #1b1b2f; box-shadow: 0 7px 0 #1b1b2f; color: #fff; display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: center; }
.peti-rays { position: absolute; left: -60px; top: -60px; width: 260px; height: 260px; background: repeating-conic-gradient(rgba(255,255,255,.16) 0 12deg, transparent 12deg 24deg); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.peti-art { position: relative; animation: petiBob 1.8s ease-in-out infinite; filter: drop-shadow(0 6px 0 rgba(0,0,0,.3)); }
.peti-art svg { width: 120px; }
@keyframes petiBob { 50% { transform: translateY(-6px) rotate(-3deg); } }
.peti-txt { position: relative; }
.peti-txt b { font-size: 22px; line-height: 1; -webkit-text-stroke: 5px #1b1b2f; paint-order: stroke fill; }
.peti-txt small { display: block; margin-top: 4px; font-weight: 700; font-size: 12.5px; color: #e6dcff; }
.odds { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.odds i { font-style: normal; padding: 0 6px; border-radius: 7px; font-weight: 800; font-size: 11px; color: #1b1b2f; border: 2px solid #1b1b2f; }
.odds .c { background: #9ee6c8; } .odds .b { background: #7fd8ff; } .odds .a { background: #c08bff; } .odds .s { background: #ffd23f; }
.peti-btn { position: relative; grid-column: 1 / -1; height: 58px; font-size: 24px; display: flex; align-items: center; justify-content: center; gap: 6px; background: #06d6a0; }
.peti-btn .coin-ico { width: 26px; height: 26px; }
.peti-card.shake .peti-art { animation: petiShake .5s; }
@keyframes petiShake { 20%, 60% { transform: rotate(-12deg) scale(1.1); } 40%, 80% { transform: rotate(12deg) scale(1.1); } }
.sec-title { width: 100%; max-width: 400px; margin: 18px 0 8px; display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 20px; color: #fff; -webkit-text-stroke: 5px #1b1b2f; paint-order: stroke fill; }
.sec-title small { font-size: 13px; -webkit-text-stroke-width: 3px; }
.deals { width: 100%; max-width: 400px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.deal { position: relative; display: flex; flex-direction: column; align-items: center; padding: 10px 6px 8px; border-radius: 18px; border: 3px solid #1b1b2f; box-shadow: 0 5px 0 #1b1b2f; background: var(--rb); color: #fff; }
.deal img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 2px rgba(0,0,0,.35)); }
.deal b { font-size: 12.5px; line-height: 1.05; text-align: center; min-height: 26px; -webkit-text-stroke: 3px #1b1b2f; paint-order: stroke fill; }
.deal .off { position: absolute; top: -10px; right: -8px; padding: 0 6px; border-radius: 8px; background: #ef476f; border: 2px solid #1b1b2f; font-weight: 800; font-size: 11px; transform: rotate(8deg); }
.deal button { margin-top: 6px; width: 100%; height: 34px; border-radius: 12px; border: 2px solid #1b1b2f; background: #fff8e7; color: #1b1b2f; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; box-shadow: 0 3px 0 #1b1b2f; }
.deal button .coin-ico { width: 16px; height: 16px; }
.deal button s { opacity: .5; font-size: 11px; }
.deal.sold { filter: grayscale(.7); }
.deal.sold button { background: #3a3f62; color: #fff; }

/* games */
.sec-title.light { margin-top: 8px; }
.soon-card { width: 100%; max-width: 400px; margin-top: 14px; padding: 18px; border-radius: 22px; border: 4px dashed rgba(27,27,47,.45); text-align: center; background: rgba(255,255,255,.25); }
.soon-card b { display: block; font-size: 20px; } .soon-card small { font-weight: 700; }

/* ---------- reveal (chest) ---------- */
.reveal { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: radial-gradient(circle, rgba(60,30,140,.9), rgba(10,8,30,.95)); }
.rv-rays { position: absolute; width: 140vmax; height: 140vmax; background: repeating-conic-gradient(rgba(255,220,120,.16) 0 10deg, transparent 10deg 20deg); animation: spin 10s linear infinite; }
.rv-card { position: relative; width: 210px; padding: 18px 12px 14px; border-radius: 26px; border: 4px solid #1b1b2f; box-shadow: 0 8px 0 #1b1b2f, 0 0 60px rgba(255,220,120,.6); background: var(--rb); text-align: center; color: #fff; animation: rvIn .7s cubic-bezier(.2,1.7,.4,1); }
@keyframes rvIn { from { transform: scale(.2) rotate(-25deg); opacity: 0; } }
.rv-card img { width: 140px; height: 140px; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(0,0,0,.35)); }
.rv-card b { display: block; font-size: 22px; -webkit-text-stroke: 5px #1b1b2f; paint-order: stroke fill; }
.rv-card small { display: block; font-weight: 800; font-size: 14px; }
.rv-card .rl { position: absolute; left: 10px; top: 4px; font-size: 40px; font-weight: 800; font-style: italic; -webkit-text-stroke: 7px #1b1b2f; paint-order: stroke fill; }
.reveal .big-btn { position: relative; width: 220px; }

/* ---------- tab bar ---------- */
.tabbar { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: calc(84px + var(--safe-bot)); padding: 0 6px var(--safe-bot); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: #1b1b2f; border-top: 4px solid #1b1b2f; box-shadow: 0 -6px 0 rgba(27,27,47,.25); }
.tabbar::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #31365a, #20243d); }
.tab { position: relative; height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: none; color: #9aa1c9; border-radius: 16px 16px 0 0; }
.tab svg { width: 38px; height: 38px; transition: transform .2s; }
.tab b { font-size: 11.5px; letter-spacing: .5px; }
.tab.on { background: linear-gradient(180deg, #ffb64a, #ff8a1c); color: #fff; }
.tab.on b { -webkit-text-stroke: 3px #1b1b2f; paint-order: stroke fill; }
.tab.on svg { transform: translateY(-6px) scale(1.18); filter: drop-shadow(0 4px 0 rgba(27,27,47,.5)); }
.tab.home { overflow: visible; }
.tab-home { width: 64px; height: 64px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #4be0b0, #06b583); border: 4px solid #1b1b2f; box-shadow: 0 4px 0 #1b1b2f; }
.tab-home svg { width: 40px; height: 40px; }
.tab.home.on { background: none; }
.tab.home.on .tab-home { background: linear-gradient(180deg, #ffd23f, #ff9f1c); transform: scale(1.08); }
.tab.home.on svg { transform: none; filter: none; }
.tdot { position: absolute; top: 10px; right: 18%; width: 12px; height: 12px; border-radius: 50%; background: #ef476f; border: 2px solid #1b1b2f; display: none; }
.tdot.on { display: block; animation: beat .9s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.25); } }

/* =====================================================================
   v2: centred phone column on wide screens, 3D mode carousel, Jalwa wall,
   lobby skins, premium (real money) cards
   ===================================================================== */
@media (min-width: 620px) and (max-width: 899px) {
  /* tablet: a centred phone-shaped column; the sides become dark framed panels */
  .lobby::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,0) calc(50% - 264px), #1b1b2f calc(50% - 264px), #1b1b2f calc(50% - 260px), rgba(0,0,0,0) calc(50% - 260px), rgba(0,0,0,0) calc(50% + 260px), #1b1b2f calc(50% + 260px), #1b1b2f calc(50% + 264px), rgba(0,0,0,0) calc(50% + 264px)),
      linear-gradient(90deg, #20243d calc(50% - 260px), transparent calc(50% - 260px), transparent calc(50% + 260px), #20243d calc(50% + 260px)); }
  .lobby .lb-top, .lobby .pages { width: 520px !important; max-width: 520px; margin: 0 auto; }
  .lobby .tabbar { left: 50%; right: auto; width: 520px; transform: translateX(-50%); }
  body.in-lobby #cad-banner { left: 50%; right: auto; width: 500px; transform: translateX(-50%); }
}

/* home: main column + side column (side column sits below on phones) */
.home-main, .home-side { width: 100%; display: flex; flex-direction: column; align-items: center; }

/* modes: 3D carousel */
#pg-home .logo { transform: scale(.72); margin-bottom: -18px; }
.modes { width: calc(100% + 28px); margin: 4px -14px 0; display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 11% 26px; perspective: 900px; scrollbar-width: none; touch-action: pan-x pan-y; }
.modes::-webkit-scrollbar { display: none; }
.mode { position: relative; flex: 0 0 78%; height: 300px; margin: 0 -2%; scroll-snap-align: center; border-radius: 28px; border: 4px solid #1b1b2f; box-shadow: 0 8px 0 #1b1b2f, 0 18px 30px rgba(0,0,0,.3); overflow: hidden; transform: rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); transition: transform .25s, filter .25s; filter: brightness(var(--br, 1)); z-index: var(--z, 1); }
.mode::after { content: ''; position: absolute; inset: 0; border-radius: 24px; box-shadow: inset 0 6px 0 rgba(255,255,255,.35), inset 0 -10px 0 rgba(0,0,0,.18); pointer-events: none; }
.mode.classic { background: radial-gradient(120% 90% at 80% 20%, #ffe58a, #ffb42e 45%, #ff7d1a); }
.mode.classic::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,27,47,.08) 2px, transparent 2px) 0 0 / 34px 34px, linear-gradient(0deg, rgba(27,27,47,.08) 2px, transparent 2px) 0 0 / 34px 34px; }
.mode.survival { background: #2b2a7a; }
.mode.multi { background: radial-gradient(120% 90% at 30% 10%, #6ee7ff, #2a8af0 50%, #1a4fb8); }
.m-art { position: absolute; inset: 0; background: center / cover no-repeat; }
.m-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,14,60,.95) 0%, rgba(20,14,60,.55) 45%, rgba(20,14,60,0) 75%); }
.m-rain { position: absolute; inset: -40px 0 0; background-image: linear-gradient(105deg, transparent 47%, rgba(190,210,255,.45) 49%, transparent 51%); background-size: 22px 34px; animation: rainfall .5s linear infinite; opacity: .45; pointer-events: none; }
.m-shine { position: absolute; top: 0; bottom: 0; width: 30%; left: -50%; z-index: 3; background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-20deg); animation: mrShine 3.4s 1s ease-in-out infinite; pointer-events: none; }
.m-tag { position: absolute; z-index: 4; top: 12px; left: 12px; padding: 1px 10px; border-radius: 9px; background: #1b1b2f; color: #ffd23f; font-weight: 800; font-size: 12px; letter-spacing: .6px; }
.m-tag.hot { background: #ff2d6f; color: #fff; border: 2px solid #fff; }
.m-tag.soon { background: #fff; color: #1a4fb8; }
.m-hero { position: absolute; right: -6px; bottom: 58px; height: 220px; filter: drop-shadow(0 8px 0 rgba(27,27,47,.25)); animation: idle 2.4s ease-in-out infinite; }
.m-txt { position: absolute; z-index: 4; left: 14px; bottom: 74px; right: 14px; color: #fff; }
.mode.classic .m-txt { right: 40%; bottom: 80px; }
.m-txt b { display: block; font-size: 30px; line-height: .92; -webkit-text-stroke: 7px #1b1b2f; paint-order: stroke fill; text-shadow: 0 4px 0 #1b1b2f; }
.m-txt small { display: block; margin-top: 6px; font-weight: 800; font-size: 13px; line-height: 1.15; color: #fff; -webkit-text-stroke: 3px rgba(27,27,47,.6); paint-order: stroke fill; }
.m-lvl { display: inline-block; margin-top: 6px; padding: 0 8px; border-radius: 8px; background: #1b1b2f; color: #fff; font-weight: 800; font-size: 12.5px; }
.m-chips { display: flex; gap: 4px; margin-top: 6px; }
.m-chips i { font-style: normal; padding: 0 7px; border-radius: 7px; background: rgba(255,255,255,.2); border: 1.5px solid rgba(255,255,255,.45); font-weight: 800; font-size: 11px; }
.mode .big-btn.khelo { position: absolute; z-index: 4; left: 14px; right: 14px; bottom: 14px; width: auto; height: 60px; margin: 0; }
.mode .big-btn.khelo span { font-size: 32px; }
.mode-go { position: absolute; z-index: 4; left: 14px; right: 14px; bottom: 14px; height: 60px; border-radius: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 28px; color: #fff; -webkit-text-stroke: 6px #9e123e; paint-order: stroke fill; background: linear-gradient(180deg, #ffa24a, #ff2d6f); border: 4px solid #fff; box-shadow: 0 6px 0 #1b1b2f, 0 0 26px rgba(255,60,120,.6); }
.mode-go svg { width: 24px; height: 24px; }
.mode-go.lock { font-size: 22px; -webkit-text-stroke-color: #0f3f8a; background: linear-gradient(180deg, #4ec5ff, #1a6ae0); box-shadow: 0 6px 0 #1b1b2f; }
.mode-go:active, .mode .big-btn.khelo:active { transform: translateY(5px); box-shadow: 0 1px 0 #1b1b2f; }
.m-bug { position: absolute; z-index: 4; right: 16px; bottom: 82px; width: 70px; transform: scaleX(-1); animation: bugHop 1.4s ease-in-out infinite; filter: drop-shadow(0 4px 2px rgba(0,0,0,.4)); }
.m-duo { position: absolute; inset: 30px 0 auto; display: flex; justify-content: center; }
.m-duo img { height: 170px; filter: brightness(0) saturate(0) opacity(.45) drop-shadow(0 0 0 #fff); }
.m-duo img:last-child { transform: scaleX(-1); margin-left: -40px; }
.mode.multi .m-txt { bottom: 82px; }
.mode-dots { display: flex; gap: 6px; margin-top: -10px; }
.mode-dots i { width: 9px; height: 9px; border-radius: 6px; background: rgba(27,27,47,.3); transition: width .2s, background .2s; }
.mode-dots i.on { width: 26px; background: #1b1b2f; }

/* section headers */
.sec-row { width: 100%; max-width: 400px; display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; }
.sec-row.wide { margin-top: 4px; }
.sec-h { font-size: 22px; color: #fff; -webkit-text-stroke: 6px #1b1b2f; paint-order: stroke fill; text-shadow: 0 3px 0 #1b1b2f; }
.sec-note { font-weight: 800; font-size: 12.5px; color: #1b1b2f; opacity: .75; }

/* Jalwa wall */
.jalwa { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; }
.jalwa-buy { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: 18px; border: 3px solid #1b1b2f; background: linear-gradient(180deg, #ffe26a, #ffb21b); box-shadow: 0 4px 0 #1b1b2f; font-weight: 800; font-size: 13.5px; animation: beat 1.6s ease-in-out infinite; }
.jalwa-buy svg { width: 20px; height: 20px; }
.jalwa-list { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.jalwa-item { position: relative; padding: 10px 12px 10px 54px; border-radius: 18px; background: #1b1b2f; color: #fff; isolation: isolate; overflow: hidden; }
.jalwa-item::before { content: ''; position: absolute; inset: -60%; z-index: -2; background: conic-gradient(#ff2d6f, #ffd23f, #3dfc9b, #4ec5ff, #b48bff, #ff2d6f); animation: spin 3s linear infinite; }
.jalwa-item::after { content: ''; position: absolute; inset: 3px; z-index: -1; border-radius: 15px; background: linear-gradient(135deg, #2b1b55, #1b1b2f 60%, #3a1640); }
.jalwa-item .jw-crown { position: absolute; left: 10px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, #ffe26a, #ffb21b); border: 2px solid #1b1b2f; animation: beat 1.2s ease-in-out infinite; }
.jalwa-item .jw-crown svg { width: 24px; height: 24px; }
.jalwa-item b { display: block; font-size: 16px; line-height: 1.1; background: linear-gradient(90deg, #ffd23f, #fff, #ffd23f); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.jalwa-item p { margin: 2px 0 0; font-weight: 700; font-size: 13.5px; line-height: 1.25; color: #f1eaff; word-break: break-word; }
.jalwa-item .jw-amt, .jalwa-item .jw-left { position: absolute; right: 10px; top: 8px; padding: 0 7px; border-radius: 8px; background: #ff2d6f; font-weight: 800; font-size: 11px; }
.jalwa-item .jw-left { background: rgba(255,255,255,.15); }
.jalwa-empty { width: 100%; padding: 16px; border-radius: 18px; border: 3px dashed rgba(27,27,47,.4); text-align: center; font-weight: 800; font-size: 14px; color: #1b1b2f; background: rgba(255,255,255,.3); }
.jw-card { text-align: left; }
.jw-title { display: block; font-size: 26px; text-align: center; color: #1b1b2f; }
.jw-sub { display: block; text-align: center; font-weight: 700; color: #6a5a4a; margin: 2px 0 12px; }
.jalwa-item.preview { margin-bottom: 10px; }
.jw-card input { width: 100%; height: 48px; margin-bottom: 8px; border-radius: 14px; border: 3px solid #1b1b2f; padding: 0 12px; font: 800 16px Baloo2, system-ui; background: #fff; }
.pay-btn { width: 100%; height: 60px; font-size: 22px; background: linear-gradient(180deg, #ffa24a, #ff2d6f) !important; color: #fff !important; -webkit-text-stroke: 5px #9e123e; paint-order: stroke fill; }
.jw-note { display: block; margin-top: 8px; text-align: center; font-weight: 700; font-size: 11.5px; color: #8a7a6a; }

/* lobby skins */
.skins { width: 100%; max-width: 400px; }
.skin-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; touch-action: pan-x pan-y; }
.skin-row::-webkit-scrollbar { display: none; }
.skin { flex: 0 0 120px; border-radius: 18px; border: 3px solid #1b1b2f; box-shadow: 0 5px 0 #1b1b2f; background: #fff8e7; padding: 6px; text-align: center; }
.skin.on { box-shadow: 0 5px 0 #1b1b2f, 0 0 0 4px #06d6a0; }
.skin .sw { position: relative; height: 86px; border-radius: 12px; border: 2px solid #1b1b2f; overflow: hidden; }
.skin b { display: block; margin-top: 4px; font-size: 13px; line-height: 1.05; }
.skin button { width: 100%; height: 32px; margin-top: 4px; border-radius: 10px; border: 2px solid #1b1b2f; font-weight: 800; font-size: 13px; box-shadow: 0 3px 0 #1b1b2f; background: #06d6a0; color: #fff; -webkit-text-stroke: 3px #046b50; paint-order: stroke fill; }
.skin button.buy { background: linear-gradient(180deg, #ffa24a, #ff2d6f); -webkit-text-stroke-color: #9e123e; }
.skin button.using { background: #1b1b2f; -webkit-text-stroke: 0; }

/* skin themes: applied to the lobby and to the little swatches */
.sw.t-classic, .lobby.t-classic .rays { background: repeating-conic-gradient(from 0deg at 50% 30%, #ffb238 0 10deg, #ffa21c 10deg 20deg); }
.sw.t-skin_diwali, .lobby.t-skin_diwali .rays { background: radial-gradient(circle at 20% 92%, rgba(255,170,40,.9) 0 3%, transparent 9%), radial-gradient(circle at 50% 95%, rgba(255,170,40,.9) 0 3%, transparent 9%), radial-gradient(circle at 80% 92%, rgba(255,170,40,.9) 0 3%, transparent 9%), radial-gradient(circle at 50% 0%, #ff7a1a33, transparent 60%), repeating-conic-gradient(from 0deg at 50% 30%, #3b1770 0 10deg, #2c1058 10deg 20deg); }
.lobby.t-skin_diwali .rays::before, .sw.t-skin_diwali::before { content: ''; position: absolute; left: -5%; right: -5%; top: 0; height: 34px; background: radial-gradient(circle at 50% 0, #ff9f1c 0 9px, #ffd23f 9px 13px, transparent 14px) 0 0 / 30px 34px repeat-x; filter: drop-shadow(0 4px 0 rgba(0,0,0,.25)); }
.lobby.t-skin_diwali .rays::after, .sw.t-skin_diwali::after { content: ''; position: absolute; inset: 0; background: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(2px 2px at 70% 20%, #ffd23f, transparent), radial-gradient(2px 2px at 40% 60%, #ff7a9a, transparent), radial-gradient(2px 2px at 85% 55%, #fff, transparent), radial-gradient(2px 2px at 10% 70%, #ffd23f, transparent); animation: twinkle 2s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .4; } to { opacity: 1; } }
.sw.t-skin_neon, .lobby.t-skin_neon .rays { background: linear-gradient(180deg, #0a0320 0%, #1a0640 55%, #2a0a55 100%); }
.lobby.t-skin_neon .rays::before, .sw.t-skin_neon::before { content: ''; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; transform: perspective(300px) rotateX(60deg); transform-origin: bottom; background: linear-gradient(90deg, rgba(255,45,200,.9) 2px, transparent 2px) 0 0 / 40px 40px, linear-gradient(0deg, rgba(0,229,255,.9) 2px, transparent 2px) 0 0 / 40px 40px; filter: drop-shadow(0 0 6px #ff2dc8); animation: grid 1.2s linear infinite; }
@keyframes grid { to { background-position: 0 40px, 0 40px; } }
.lobby.t-skin_neon .rays::after, .sw.t-skin_neon::after { content: ''; position: absolute; left: 50%; top: 22%; width: 46%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: linear-gradient(180deg, #ffd23f, #ff2d8a 60%, transparent 61%), repeating-linear-gradient(180deg, transparent 0 8px, #1a0640 8px 11px); box-shadow: 0 0 40px #ff2d8a; opacity: .9; }
.sw.t-skin_shahi, .lobby.t-skin_shahi .rays { background: radial-gradient(circle at 50% 30%, rgba(255,210,63,.35), transparent 55%), radial-gradient(circle, #d4a017 0 3px, transparent 4px) 0 0 / 28px 28px, radial-gradient(circle, #f0c040 0 2px, transparent 3px) 14px 14px / 28px 28px, linear-gradient(180deg, #7a0f24, #4d0716); }
.lobby.t-skin_shahi .rays::before, .sw.t-skin_shahi::before { content: ''; position: absolute; inset: 8px; border: 3px solid #f0c040; border-radius: 20px; box-shadow: inset 0 0 0 3px #7a0f24, inset 0 0 0 6px #d4a017; }
.lobby[class*="t-skin_"] .logo .l1 { color: #fff; }
.lobby[class*="t-skin_"] .tag, .lobby[class*="t-skin_"] .sec-note { color: #fff; }
.lobby.t-skin_neon .sec-note, .lobby.t-skin_neon .tag { text-shadow: 0 0 8px #ff2dc8; }
.lobby[class*="t-skin_"] .jalwa-empty { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.lobby[class*="t-skin_"] .mode-dots i { background: rgba(255,255,255,.35); } .lobby[class*="t-skin_"] .mode-dots i.on { background: #fff; }

/* premium (real money) cards */
.prem-row { width: calc(100% + 28px); margin: 0 -14px 16px; padding: 8px 14px 14px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x pan-y; }
.prem-row::-webkit-scrollbar { display: none; }
.prem { position: relative; flex: 0 0 160px; scroll-snap-align: start; padding: 10px 10px 10px; border-radius: 22px; color: #fff; text-align: center; isolation: isolate; overflow: hidden; background: #1b1b2f; box-shadow: 0 6px 0 #1b1b2f, 0 0 24px rgba(255,190,60,.45); }
.prem::before { content: ''; position: absolute; inset: -50%; z-index: -2; background: conic-gradient(#ffd23f, #ff2d6f, #b48bff, #4ec5ff, #ffd23f); animation: spin 4s linear infinite; }
.prem::after { content: ''; position: absolute; inset: 4px; z-index: -1; border-radius: 18px; background: radial-gradient(120% 80% at 50% 0%, #5a2bb8, #2a1660 60%, #1b1b2f); }
.prem .pr-rays { position: absolute; left: 50%; top: 50px; width: 220px; height: 220px; margin: -110px 0 0 -110px; z-index: -1; background: repeating-conic-gradient(rgba(255,220,120,.18) 0 10deg, transparent 10deg 20deg); animation: spin 10s linear infinite; }
.prem img { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 6px 4px rgba(0,0,0,.5)) drop-shadow(0 0 12px rgba(255,220,120,.6)); animation: idle 2s ease-in-out infinite; }
.prem img.fx-diamond { filter: hue-rotate(160deg) saturate(1.6) brightness(1.15) drop-shadow(0 0 14px #6ef0ff); }
.prem img.fx-gold { filter: sepia(1) saturate(4) hue-rotate(-12deg) brightness(1.15) drop-shadow(0 0 14px #ffd23f); }
.prem .pr-tag { position: absolute; top: 8px; left: 8px; padding: 0 7px; border-radius: 7px; background: #ffd23f; color: #1b1b2f; font-weight: 800; font-size: 11px; }
.prem b { display: block; font-size: 15px; line-height: 1.05; min-height: 32px; -webkit-text-stroke: 4px #1b1b2f; paint-order: stroke fill; }
.prem small { display: block; font-weight: 700; font-size: 11px; line-height: 1.15; color: #d9ccff; min-height: 38px; margin: 2px 0 6px; }
.prem button { width: 100%; height: 42px; border-radius: 14px; border: 3px solid #fff; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(180deg, #ffa24a, #ff2d6f); -webkit-text-stroke: 4px #9e123e; paint-order: stroke fill; box-shadow: 0 4px 0 #0d0d1a; }
.prem button.owned { background: #06d6a0; -webkit-text-stroke-color: #046b50; font-size: 15px; }
.prem-note { width: 100%; max-width: 400px; padding: 14px; border-radius: 18px; background: rgba(27,27,47,.85); color: #fff; font-weight: 800; font-size: 13px; text-align: center; }
.page > * { flex-shrink: 0; }

/* ---- SHOUTOUT: top splash, promo banners, buy sheet ---- */
.so-splash { position: relative; z-index: 4; flex: 0 0 auto; align-self: stretch; height: 72px; margin: 2px 12px 2px; display: flex; align-items: center; justify-content: center; pointer-events: none; perspective: 600px; }
.so-splash .so-card { pointer-events: auto; cursor: pointer; width: 100%; max-width: 400px; }
.so-card { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 10px; border-radius: 20px; color: #fff; isolation: isolate; overflow: hidden; box-shadow: 0 6px 0 #1b1b2f, 0 14px 30px rgba(255,45,111,.45); border: 3px solid #1b1b2f; text-align: left; }
.so-card::before { content: ''; position: absolute; inset: -80%; z-index: -2; background: conic-gradient(#ff2d6f, #ffd23f, #3dfc9b, #4ec5ff, #b48bff, #ff2d6f); animation: spin 2.6s linear infinite; }
.so-card::after { content: ''; position: absolute; inset: 3px; z-index: -1; border-radius: 15px; background: linear-gradient(120deg, #3a1a6e, #1b1b2f 55%, #4a1440); }
.so-card .sc-crown { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(180deg, #ffe26a, #ffb21b); border: 2px solid #1b1b2f; animation: beat 1.1s ease-in-out infinite; }
.so-card .sc-crown svg { width: 28px; height: 28px; }
.so-card .sc-body { flex: 1; min-width: 0; }
.so-card small { display: block; font-weight: 800; font-size: 10px; letter-spacing: 1.6px; color: #ffd23f; line-height: 1; }
.so-card b { display: block; font-size: 19px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(90deg, #ffd23f, #fff, #ffd23f); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2s linear infinite; }
.so-card p { margin: 1px 0 0; font-weight: 700; font-size: 13.5px; line-height: 1.2; color: #f1eaff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.so-card .sc-go { flex: 0 0 auto; padding: 4px 10px; border-radius: 12px; background: linear-gradient(180deg, #ffa24a, #ff2d6f); border: 2px solid #fff; font-weight: 800; font-size: 15px; animation: beat 1.4s ease-in-out infinite; }
.so-card.cta::after { background: linear-gradient(120deg, #6a1640, #1b1b2f 55%, #2b1b6e); }
.so-card.cta small { color: #3dfc9b; }
.so-card.in { animation: soIn .55s cubic-bezier(.2,1.5,.4,1) both; }
.so-card.out { animation: soOut .4s ease-in both; }
.so-card.in::before, .so-card.out::before { animation: spin 2.6s linear infinite; }
@keyframes soIn { from { transform: translateY(-120%) rotateX(60deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes soOut { to { transform: translateY(-60%) scale(.9); opacity: 0; } }
/* sparkle sweep across the splash */
.so-splash .so-card .sc-body::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: mrShine 2.4s .4s ease-in-out infinite; pointer-events: none; }
.so-splash .so-card .sc-body { position: static; }
body.lobby-modal .so-splash, body:not(.in-lobby) .so-splash { display: none; }

/* in-game / lobby promo banner (push to buy) */
.so-promo { position: relative; width: 100%; max-width: 400px; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 10px; margin: 4px 0 12px; border-radius: 22px; border: 3px solid #1b1b2f; color: #fff; text-align: left; isolation: isolate; overflow: hidden; box-shadow: 0 6px 0 #1b1b2f, 0 0 26px rgba(255,210,63,.35); font-family: inherit; }
.so-promo::before { content: ''; position: absolute; inset: -80%; z-index: -2; background: conic-gradient(#ffd23f, #ff2d6f, #b48bff, #4ec5ff, #3dfc9b, #ffd23f); animation: spin 3s linear infinite; }
.so-promo::after { content: ''; position: absolute; inset: 3px; z-index: -1; border-radius: 18px; background: radial-gradient(120% 140% at 0% 0%, #5a2bb8, #2a1660 55%, #1b1b2f); }
.so-promo .sp-crown { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(180deg, #ffe26a, #ffb21b); border: 2px solid #1b1b2f; animation: beat 1.2s ease-in-out infinite; }
.so-promo .sp-crown svg { width: 34px; height: 34px; }
.so-promo .sp-txt { flex: 1; min-width: 0; }
.so-promo .sp-txt b { display: block; font-size: 17px; line-height: 1.1; background: linear-gradient(90deg, #ffd23f, #fff, #ffd23f); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2s linear infinite; }
.so-promo .sp-txt small { display: block; margin-top: 2px; font-weight: 700; font-size: 12px; line-height: 1.2; color: #e6dcff; }
.so-promo .sp-go { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; padding: 5px 10px 4px; border-radius: 14px; background: linear-gradient(180deg, #ffa24a, #ff2d6f); border: 2px solid #fff; box-shadow: 0 3px 0 #1b1b2f; font-weight: 800; font-size: 18px; line-height: 1; }
.so-promo .sp-go i { font-style: normal; font-size: 9.5px; letter-spacing: 1px; margin-top: 2px; }
.so-promo:active { transform: translateY(3px); box-shadow: 0 3px 0 #1b1b2f; }
.so-promo.small { margin: 10px 0 0; padding: 8px; border-radius: 18px; }
.so-promo.small::after { border-radius: 14px; }
.so-promo.small .sp-crown { width: 40px; height: 40px; border-radius: 12px; }
.so-promo.small .sp-crown svg { width: 26px; height: 26px; }
.so-promo.small .sp-txt b { font-size: 14.5px; }
.so-promo.small .sp-txt small { font-size: 11px; }
.so-promo.small .sp-go { font-size: 15px; }

/* buy sheet: "kya hoga" steps + preview */
.item-sheet.so-sheet { position: fixed; z-index: 70; padding: 16px; }
.so-sheet .is-card { max-height: calc(100dvh - 40px); overflow-y: auto; }
.so-steps { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.so-steps > div { display: flex; align-items: flex-start; gap: 9px; padding: 7px 9px; border-radius: 14px; background: #fff6e0; border: 2px solid #1b1b2f; }
.so-steps i { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 14px; color: #fff; background: #ff2d6f; border: 2px solid #1b1b2f; }
.so-steps span { font-weight: 700; font-size: 12.5px; line-height: 1.25; color: #6a5a4a; }
.so-steps span b { display: block; font-size: 14.5px; color: #1b1b2f; }
.so-prev-lbl { display: block; font-weight: 800; font-size: 12px; color: #8a7a6a; margin: 0 0 6px; text-align: center; }
.so-card.preview { margin-bottom: 12px; box-shadow: 0 4px 0 #1b1b2f; }
.so-sheet .is-x { top: 8px; right: 8px; width: 36px; height: 36px; font-size: 16px; z-index: 2; }

/* =====================================================================
   DESKTOP (web): full-width lobby, not a phone column
   ===================================================================== */
@media (min-width: 900px) {
  .lobby .lb-top { width: 100%; max-width: 1280px; margin: 0 auto; padding: 16px 32px 6px; }
  .lb-top .rk-badge { flex: 0 1 420px; margin-right: auto; }
  .so-splash { width: 100%; max-width: 640px; margin: 2px auto; align-self: center; }
  .page { padding: 6px 32px 150px; }
  .page.on { animation: none; }

  /* bottom tab bar becomes a floating dock */
  .lobby .tabbar { left: 50%; right: auto; bottom: 16px; width: 600px; height: 84px; padding: 0 10px; transform: translateX(-50%); border: 4px solid #1b1b2f; border-radius: 26px; box-shadow: 0 8px 0 #1b1b2f, 0 20px 40px rgba(0,0,0,.3); }
  .lobby .tabbar::before { border-radius: 22px; }
  .lobby .tab { height: 76px; border-radius: 16px; margin-bottom: 0; }
  .lobby .tab:hover:not(.on) { color: #fff; }
  .lobby .tab:hover:not(.on) svg { transform: translateY(-3px); }
  body.in-lobby #cad-banner { left: auto; right: 24px; bottom: 24px; width: 360px; transform: none; }

  /* HOME: modes on the left, shoutout + skins on the right */
  #pg-home.on { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 40px; align-items: start; align-content: start; max-width: 1280px; margin: 0 auto; width: 100%; }
  .home-side { position: sticky; top: 0; padding-top: 18px; }
  .home-side .so-promo, .home-side .jalwa, .home-side .skins, .home-side .sec-row { max-width: none; }
  .home-side .so-promo { margin-top: 0; }
  .home-side .sec-row { margin-top: 18px; }
  #pg-home .logo { transform: scale(.72); margin-bottom: -26px; }
  .modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; width: 100%; margin: 10px 0 0; padding: 22px 0 28px; overflow: visible; perspective: none; scroll-snap-type: none; }
  .mode { flex: none; height: 380px; margin: 0; transform: none !important; filter: none !important; transition: transform .2s, box-shadow .2s; }
  .mode:hover { transform: translateY(-8px) rotate(-1deg) !important; box-shadow: 0 14px 0 #1b1b2f, 0 26px 40px rgba(0,0,0,.35); }
  .mode .m-hero { max-height: 74%; }
  .mode-dots { display: none !important; }
  #btn-levels { margin-top: 0; }

  /* SAAMAN: hero + stats on the left, inventory on the right */
  #pg-saaman.on { display: grid; grid-template-columns: 440px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 36px; align-content: start; max-width: 1200px; margin: 0 auto; width: 100%; }
  #pg-saaman .eq-stage { grid-column: 1; grid-row: 1; max-width: none; margin-top: 30px; }
  #pg-saaman .eq-stats { grid-column: 1; grid-row: 2; justify-self: center; align-self: start; }
  #pg-saaman .inv-panel { grid-column: 2; grid-row: 1 / span 2; width: 100%; margin: 20px 0 0; border: 4px solid #1b1b2f; border-radius: 26px; box-shadow: 0 8px 0 #1b1b2f; }
  .inv-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px; }

  /* DUKAAN: premium row on top, chest + deals side by side */
  #pg-dukaan.on { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "sh sh" "pr pr" "pt dt" "pt dl"; gap: 0 36px; align-content: start; max-width: 1200px; margin: 0 auto; width: 100%; }
  #pg-dukaan .sec-row.wide { grid-area: sh; max-width: none; margin-top: 18px; }
  #pg-dukaan .prem-row { grid-area: pr; width: 100%; margin: 0 0 20px; padding: 8px 4px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; overflow: visible; }
  #pg-dukaan .prem { flex: none; }
  #pg-dukaan .peti-card { grid-area: pt; max-width: none; align-self: start; margin-top: 18px; grid-template-columns: 180px 1fr; padding: 22px; }
  #pg-dukaan .sec-title { grid-area: dt; max-width: none; }
  #pg-dukaan .deals { grid-area: dl; max-width: none; }

  /* GAMES */
  #pg-games .mr-card.tall { width: 100%; max-width: 900px; height: 340px; }
  #pg-games .soon-card, #pg-games .sec-title { max-width: 900px; }

  /* bigger hover feedback on clickable cards with a mouse */
  .so-promo:hover, .mr-card:hover { transform: translateY(-3px); }
}
