*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#0b0d14;color:#fff}body{min-height:100vh;background:radial-gradient(circle at top,#28305b 0,#111522 42%,#080a10 100%)}button{font:inherit}.app-shell{width:min(100%,500px);margin:0 auto;min-height:100vh;padding:calc(18px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom))}.screen{display:flex;flex-direction:column;gap:16px}.hidden{display:none!important}.hero{padding:12px 4px}.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:900;color:#9da9ff}.hero h1,.topbar h2,.death-card h1{margin:6px 0}.hero p,.death-card p{margin:0;color:#bbc1d3;line-height:1.55}.subtle{font-size:12px;color:#9ca3ba}.pet-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.pet-card{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.055);border-radius:20px;padding:15px;display:flex;align-items:center;gap:12px;color:#fff;text-align:left;box-shadow:0 10px 30px rgba(0,0,0,.18);transition:.18s}.pet-card:active{transform:scale(.98)}.pet-card.selected{outline:2px solid #8e9cff;background:rgba(142,156,255,.14)}.pet-emoji{font-size:38px}.pet-meta strong{display:block;font-size:15px}.pet-meta span{font-size:12px;color:#9ba2b8}.primary-btn,.ghost-btn,.action-btn{border:0;border-radius:16px}.primary-btn{padding:16px 18px;background:linear-gradient(135deg,#8f9cff,#c18bff);color:#0b0d14;font-weight:900;box-shadow:0 12px 30px rgba(143,156,255,.28)}.primary-btn:disabled{opacity:.35}.topbar{display:flex;align-items:center;justify-content:space-between}.coin-pill{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);padding:10px 14px;border-radius:999px;font-weight:900}.room-card{height:300px;border-radius:28px;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(180deg,#8799ff 0%,#b7bfff 58%,#6c5948 58%,#4c3f34 100%);box-shadow:0 20px 50px rgba(0,0,0,.28)}.room-card.sick{filter:saturate(.6)}.room-card.sleeping{background:linear-gradient(180deg,#263357 0%,#34436b 58%,#2d2926 58%,#181819 100%)}.room-glow{position:absolute;width:230px;height:230px;border-radius:50%;background:rgba(255,255,255,.22);filter:blur(24px);top:10px}.pet-avatar{font-size:112px;z-index:2;filter:drop-shadow(0 14px 14px rgba(0,0,0,.25));transition:.2s;user-select:none}.pet-avatar.happy{transform:scale(1.12) rotate(4deg)}.pet-avatar.sick{animation:wobble .8s infinite}.status-bubble{z-index:2;margin-top:8px;background:rgba(10,12,20,.5);backdrop-filter:blur(8px);padding:8px 12px;border-radius:999px;font-size:13px}.attention-badge{position:absolute;top:16px;right:16px;z-index:5;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#ffcf4f;color:#1a1a1a;font-size:24px;font-weight:1000;box-shadow:0 8px 22px rgba(0,0,0,.25)}.sleep-overlay{position:absolute;inset:0;z-index:4;background:rgba(5,7,15,.55);display:flex;align-items:flex-start;justify-content:center;padding-top:18px;font-weight:900}.poop-layer{position:absolute;inset:0;z-index:1}.poop{position:absolute;font-size:26px;bottom:12px}.poop:nth-child(1){left:12%}.poop:nth-child(2){left:30%}.poop:nth-child(3){right:30%}.poop:nth-child(4){right:12%}.dashboard-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.metric-card{background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.07);padding:13px 14px;border-radius:18px;display:flex;justify-content:space-between;gap:8px}.metric-card span{color:#c8cce0;font-size:12px}.metric-card strong{font-size:13px}.needs-card,.history-card{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07);border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:9px}.need-row{display:flex;align-items:center;justify-content:space-between;font-size:13px}.need-flags{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.flag{padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.07);font-size:11px}.flag.bad{background:rgba(255,105,120,.14);color:#ffb2bb}.flag.good{background:rgba(106,224,161,.14);color:#aff1cc}.actions{display:grid;grid-template-columns:1fr 1fr;gap:11px}.action-btn{min-height:103px;background:rgba(255,255,255,.065);border:1px solid rgba(255,255,255,.07);color:white;padding:13px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;font-weight:850}.action-btn span{font-size:26px}.action-btn small{font-size:11px;color:#9ea5ba;font-weight:600}.action-btn:disabled{opacity:.35}.history-title{font-size:13px;font-weight:900}.history-list{display:flex;flex-direction:column;gap:6px}.history-item{font-size:12px;color:#bfc5d8;display:flex;justify-content:space-between;gap:10px}.history-item span:last-child{color:#7f879f;white-space:nowrap}.footer-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.ghost-btn{padding:12px;background:rgba(255,255,255,.05);color:#d7dbeb;border:1px solid rgba(255,255,255,.08)}.ghost-btn.danger{color:#ff9fa8}.toast{position:fixed;left:50%;bottom:calc(28px + env(safe-area-inset-bottom));transform:translateX(-50%) translateY(18px);background:#171a27;border:1px solid rgba(255,255,255,.09);padding:11px 16px;border-radius:14px;opacity:0;pointer-events:none;transition:.22s;box-shadow:0 10px 30px rgba(0,0,0,.3);font-size:14px;z-index:20;max-width:88%;text-align:center}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.death-card{margin-top:15vh;text-align:center;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);border-radius:28px;padding:30px 22px}.death-icon{font-size:86px;margin-bottom:10px}@keyframes wobble{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}
.inventory-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.inventory-strip div{background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.07);border-radius:14px;padding:9px 6px;text-align:center}.inventory-strip span{display:block;font-size:20px}.inventory-strip strong{display:block;margin-top:3px;font-size:12px}.shop-launch-card,.shop-info-card,.owned-card{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07);border-radius:18px;padding:14px}.shop-launch-card{display:flex;align-items:center;justify-content:space-between;gap:12px}.shop-launch-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.primary-btn.compact{padding:11px 14px}.shop-info-card p{margin:6px 0 0;color:#aeb5ca;font-size:12px;line-height:1.45}.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.shop-item{background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.075);border-radius:20px;padding:14px;display:flex;flex-direction:column;gap:8px}.shop-item-icon{font-size:34px}.shop-item h3{font-size:15px;margin:0}.shop-item p{margin:0;color:#9fa7bb;font-size:11px;line-height:1.4;min-height:46px}.shop-item-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.buy-btn{border:0;border-radius:12px;padding:9px 11px;background:#fff;color:#10131e;font-weight:900}.buy-btn:disabled{opacity:.35}.price{font-size:12px;font-weight:900}.owned-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:10px}.owned-row{display:flex;justify-content:space-between;background:rgba(255,255,255,.045);border-radius:12px;padding:9px 10px;font-size:12px}@media(max-width:390px){.shop-grid{grid-template-columns:1fr}.shop-launch-card{align-items:flex-start;flex-direction:column}.shop-launch-actions{justify-content:flex-start}.inventory-strip{grid-template-columns:repeat(5,1fr);gap:5px}}

.daily-card,.wardrobe-card{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07);border-radius:18px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tab-btn{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.05);color:#cdd2e3;border-radius:14px;padding:11px;font-weight:800}.tab-btn.active{background:rgba(143,156,255,.18);outline:1px solid #8f9cff;color:white}
.outfit-badge{position:absolute;z-index:3;top:72px;right:24px;font-size:42px;filter:drop-shadow(0 6px 8px rgba(0,0,0,.2))}
.item-actions{display:flex;gap:6px;flex-wrap:wrap}.ad-btn{border:0;border-radius:12px;padding:8px 9px;background:rgba(143,156,255,.18);color:#dfe3ff;font-weight:900}.equip-btn{border:0;border-radius:12px;padding:8px 9px;background:rgba(106,224,161,.16);color:#c7f6da;font-weight:900}.gift-badge{font-size:12px;color:#ffd9a0}

.favorite-food-card{background:rgba(255,210,90,.07);border:1px solid rgba(255,210,90,.16);border-radius:18px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.favorite-food-actions{display:flex;gap:7px}.fav-food-btn{border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.06);color:white;border-radius:13px;padding:9px 10px;font-weight:900}.fav-food-btn:disabled{opacity:.35}

/* V7 visual composition */
.room-card{height:320px}
.pet-stage{
  position:relative;
  z-index:3;
  width:180px;
  height:170px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:10px;
}
.pet-avatar{
  position:relative;
  z-index:2;
  font-size:112px;
  line-height:1;
}
.outfit-layer{
  position:absolute;
  z-index:4;
  pointer-events:none;
  line-height:1;
  filter:drop-shadow(0 5px 5px rgba(0,0,0,.18));
  transform-origin:center;
}

/* Headwear */
.outfit-layer.cap{
  font-size:48px;
  top:18px;
  left:91px;
  transform:translateX(-50%) rotate(7deg);
}
.outfit-layer.crown{
  font-size:50px;
  top:6px;
  left:90px;
  transform:translateX(-50%);
}

/* Face accessory */
.outfit-layer.glasses{
  font-size:45px;
  top:68px;
  left:90px;
  transform:translateX(-50%) scale(.95);
}

/* Neck / body accessories */
.outfit-layer.bow{
  font-size:42px;
  top:101px;
  left:90px;
  transform:translateX(-50%);
}
.outfit-layer.scarf{
  font-size:48px;
  top:100px;
  left:89px;
  transform:translateX(-50%) rotate(-7deg);
}
.outfit-layer.hoodie{
  font-size:62px;
  top:96px;
  left:89px;
  transform:translateX(-50%);
}

/* Smaller outfit placement for baby stage */
.pet-stage.stage-baby .outfit-layer.cap{
  top:28px;
  font-size:42px;
}
.pet-stage.stage-baby .outfit-layer.crown{
  top:17px;
  font-size:44px;
}
.pet-stage.stage-baby .outfit-layer.glasses{
  top:75px;
  font-size:38px;
}
.pet-stage.stage-baby .outfit-layer.bow,
.pet-stage.stage-baby .outfit-layer.scarf,
.pet-stage.stage-baby .outfit-layer.hoodie{
  top:104px;
}

/* No clothes on an unhatched egg */
.pet-stage.stage-egg .outfit-layer{
  display:none!important;
}

/* Better poop placement */
.poop-layer{z-index:2}
.poop{
  font-size:24px;
  bottom:14px;
  filter:drop-shadow(0 4px 4px rgba(0,0,0,.18));
}
.poop:nth-child(1){left:8%}
.poop:nth-child(2){left:21%}
.poop:nth-child(3){right:21%}
.poop:nth-child(4){right:8%}

/* Status sits independently below the pet instead of competing with outfit */
.status-bubble{
  position:absolute;
  z-index:6;
  bottom:54px;
  left:50%;
  transform:translateX(-50%);
  margin:0;
  max-width:82%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.attention-badge{z-index:8}
.sleep-overlay{z-index:7}

/* subtle floor shadow */
.pet-stage::after{
  content:"";
  position:absolute;
  z-index:1;
  width:105px;
  height:20px;
  border-radius:50%;
  background:rgba(0,0,0,.16);
  bottom:16px;
  left:50%;
  transform:translateX(-50%);
  filter:blur(3px);
}
.pet-stage.stage-egg::after{width:92px}

/* hide old badge if an older cached DOM ever contains it */
.outfit-badge{display:none!important}

.lang-switch{position:sticky;top:6px;z-index:30;display:flex;justify-content:flex-end;gap:6px;margin-bottom:10px}
.lang-btn{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.06);color:#dfe3ff;border-radius:11px;padding:7px 10px;font-weight:800;min-width:48px}
.lang-btn.active{background:rgba(143,156,255,.24);color:#fff;outline:1px solid rgba(143,156,255,.55)}

/* V9 navigation + 2026 UI */
.app-shell{padding-bottom:110px}
.screen{gap:14px}
.topbar,.metric-card,.needs-card,.inventory-strip div,.daily-card,.wardrobe-card,.shop-launch-card,.history-card,.owned-card,.shop-info-card,.insight-card{backdrop-filter:blur(18px);box-shadow:0 10px 30px rgba(0,0,0,.18)}
.topbar{background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.08);border-radius:22px;padding:16px 18px}
.coin-pill{box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 8px 18px rgba(0,0,0,.14)}
.room-card{background:linear-gradient(180deg,#8e97f0 0%, #b2b6ff 58%, #6d573f 58%, #5b4634 100%);box-shadow:0 24px 60px rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.1)}
.room-glow{background:radial-gradient(circle at 50% 20%, rgba(255,255,255,.36), transparent 58%)}
.dashboard-grid{gap:10px}.metric-card{background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.08);border-radius:18px}
.inventory-strip div,.needs-card,.history-card,.owned-card,.shop-info-card,.daily-card,.wardrobe-card,.shop-launch-card,.insight-card{background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.08)}
.actions{gap:10px}.action-btn{background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.08);border-radius:18px;min-height:88px;box-shadow:0 8px 20px rgba(0,0,0,.14)}
.action-btn span{font-size:22px}.primary-btn,.ghost-btn,.buy-btn,.equip-btn,.ad-btn,.tab-btn{box-shadow:0 8px 18px rgba(0,0,0,.15)}
.bottom-nav{position:fixed;left:50%;transform:translateX(-50%);bottom:14px;width:min(94vw,520px);display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:10px;border-radius:24px;background:rgba(10,12,22,.78);border:1px solid rgba(255,255,255,.09);backdrop-filter:blur(22px);box-shadow:0 18px 40px rgba(0,0,0,.35);z-index:50}
.nav-btn{border:0;border-radius:18px;padding:10px 6px;background:transparent;color:#d2d7ef;display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:800}.nav-btn span{font-size:22px;line-height:1}.nav-btn small{font-size:12px}.nav-btn.active{background:linear-gradient(180deg, rgba(143,156,255,.26), rgba(143,156,255,.14));color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.22)}
.insight-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.insight-card{border-radius:18px;padding:14px}.insight-card span{display:block;color:#cfd5ea;font-size:13px;margin-bottom:8px}.insight-card strong{font-size:22px}
.quick-links{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-link-btn{border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));color:#fff;border-radius:18px;padding:16px;text-align:left;font-weight:800}.quick-link-btn small{display:block;color:#cfd5ea;font-weight:600;margin-top:4px}
@media (max-width:420px){.bottom-nav{width:calc(100vw - 18px);bottom:10px}.nav-btn small{font-size:11px}}

.top-utility{display:flex;align-items:center;justify-content:space-between;gap:10px;position:sticky;top:6px;z-index:31;margin-bottom:10px}.top-utility .lang-switch{position:static;margin:0}.sync-badge{padding:7px 10px;border-radius:11px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.06);color:#dfe3ff;font-size:11px;font-weight:900;letter-spacing:.04em}.sync-badge.cloud{background:rgba(106,224,161,.14);color:#c7f6da}.sync-badge.error{background:rgba(255,105,120,.14);color:#ffb2bb}


/* =========================================================
   V11 — GAME-FIRST HOME UI
   ========================================================= */
.game-home{gap:12px}
.game-hud{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:2px 2px 0;
}
.pet-identity{min-width:0}
.pet-title-row{display:flex;align-items:center;gap:9px;min-width:0}
.pet-title-row h2{margin:0;font-size:25px;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stage-pill{
  display:inline-flex;align-items:center;max-width:170px;padding:6px 9px;
  border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);
  color:#cbd1e8;font-size:11px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.game-coins{padding:9px 13px;flex:0 0 auto}

.game-room{height:272px;border-radius:30px}
.game-room .pet-avatar{font-size:106px}
.game-room .status-bubble{
  position:absolute;left:50%;bottom:17px;transform:translateX(-50%);
  margin:0;max-width:82%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  background:rgba(10,12,20,.62);border:1px solid rgba(255,255,255,.1)
}
.room-hud{position:absolute;top:13px;left:13px;right:13px;z-index:5;display:flex;justify-content:space-between;pointer-events:none}
.room-hud-chip{
  display:inline-flex;align-items:center;gap:5px;padding:7px 9px;border-radius:999px;
  background:rgba(10,12,20,.36);border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(12px);font-size:11px;color:#fff
}

.game-vitals{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.game-vitals .metric-card{padding:10px 11px;border-radius:15px;display:block}
.vital-card{min-height:63px}
.vital-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.vital-head span{font-size:11px!important}
.vital-head strong{font-size:11px!important}
.vital-track{
  height:6px;margin-top:8px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden
}
.vital-fill{
  display:block;height:100%;width:0;border-radius:inherit;
  background:linear-gradient(90deg,#9aa6ff,#c794ff);transition:width .28s ease
}
.mini-stat{display:flex!important;align-items:center;justify-content:space-between;min-height:42px}
.mini-stat span{font-size:11px!important}.mini-stat strong{font-size:12px!important}

.game-inventory{
  padding:7px;border-radius:18px;background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.065)
}
.game-inventory div{padding:6px 3px;border:0;background:transparent;box-shadow:none!important}
.game-inventory span{font-size:18px}.game-inventory strong{font-size:11px}

.game-actions-card{
  padding:12px;border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  border:1px solid rgba(255,255,255,.075);box-shadow:0 10px 30px rgba(0,0,0,.15)
}
.section-heading{display:flex;align-items:center;justify-content:space-between;margin:0 2px 9px}
.game-actions{grid-template-columns:repeat(4,1fr);gap:7px}
.game-actions .action-btn{
  min-height:72px;padding:8px 5px;border-radius:15px;align-items:center;text-align:center;
  justify-content:center;font-size:11px;line-height:1.15;gap:3px
}
.game-actions .action-btn span{font-size:23px;line-height:1}
.game-actions .action-btn small{display:none}
.game-actions .action-btn:active{transform:scale(.97)}
.game-actions .action-btn:not(:disabled):nth-child(-n+5){
  background:linear-gradient(180deg,rgba(143,156,255,.15),rgba(255,255,255,.04))
}

.home-shortcuts{display:grid;gap:8px}
.home-card{
  width:100%;min-height:62px;padding:10px 12px;border-radius:18px;
  display:flex;align-items:center;gap:10px;text-align:left;color:#fff;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.075);box-shadow:0 8px 22px rgba(0,0,0,.12)
}
button.home-card{font:inherit}
.home-card:active{transform:scale(.992)}
.home-card-icon{
  width:39px;height:39px;display:grid;place-items:center;border-radius:13px;
  background:rgba(143,156,255,.14);font-size:21px;flex:0 0 auto
}
.home-card-copy{min-width:0;display:flex;flex:1;flex-direction:column;gap:3px}
.home-card-copy small{font-size:11px;color:#aeb5ca;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-card-arrow{font-size:28px;color:#8992ac;line-height:1}
.home-card-actions{display:flex;gap:6px;flex:0 0 auto}
.home-mini-btn{
  border:0;border-radius:11px;padding:8px 10px;background:#fff;color:#121522;font-size:11px;font-weight:900
}
.home-mini-btn.secondary{background:rgba(143,156,255,.16);color:#e5e8ff;border:1px solid rgba(143,156,255,.22)}

.game-details{
  border-radius:18px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.065);overflow:hidden
}
.game-details summary{
  list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:13px 14px;cursor:pointer;font-size:12px;font-weight:900
}
.game-details summary::-webkit-details-marker{display:none}
.details-hint{font-size:10px;color:#8f98b3;font-weight:700}
.game-details[open] summary{border-bottom:1px solid rgba(255,255,255,.06)}
.game-details .needs-card,.game-details .history-card{
  border:0;border-radius:0;background:transparent;box-shadow:none;padding:12px 14px
}
.dev-tools .footer-actions{padding:12px}
.hidden-compat{display:none!important}

/* keep the main game content clear of Telegram's bottom navigation */
.game-home{padding-bottom:8px}
@media(max-width:390px){
  .game-room{height:250px}
  .game-room .pet-avatar{font-size:96px}
  .game-vitals{gap:6px}
  .game-actions{gap:6px}
  .game-actions .action-btn{min-height:66px;font-size:10px}
  .home-card{min-height:58px}
}


/* =========================================================
   V12 — cleaner auto-language / less clutter
   ========================================================= */
.top-utility,.lang-switch,.sync-badge{display:none!important}

.game-hud.compact{
  display:block;
  padding:2px 2px 2px;
}
.hud-subtle{
  margin-top:6px;
  color:#8f98b3;
  font-size:11px;
  line-height:1.25;
}
.pet-title-row h2{
  font-size:28px;
}
.stage-pill{
  max-width:190px;
}

.game-room{
  height:286px;
  border-radius:32px;
}
.game-room .status-bubble{
  bottom:15px;
}

.game-vitals{
  gap:7px;
}
.game-vitals .metric-card{
  padding:10px 10px;
}
.mini-stat{
  min-height:36px;
}

.compact-home-shortcuts{
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.compact-shortcut{
  min-height:68px;
  padding:10px 12px;
}
.wide-shortcut{
  grid-column:1 / -1;
  min-height:74px;
}
.wallet-inline{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:11px;
  color:#dfe4fb;
  font-weight:800;
}
.home-card-copy .wallet-inline{
  margin-top:2px;
}
.home-card-arrow{display:none}
.home-card-actions{
  align-self:flex-end;
}
.home-mini-btn{
  min-width:58px;
}

.game-actions-card{
  padding:12px;
}
.section-heading{
  margin-bottom:8px;
}
.game-actions{
  gap:7px;
}
.game-actions .action-btn{
  min-height:68px;
}

#gameScreen .game-details summary{
  padding:12px 14px;
}

@media (max-width:390px){
  .compact-home-shortcuts{
    grid-template-columns:1fr;
  }
  .wide-shortcut{
    grid-column:auto;
  }
}


/* =========================================================
   V13 — AdsGram reward hub
   ========================================================= */
.ads-hub{
  padding:14px;
  border-radius:22px;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  border:1px solid rgba(255,255,255,.075);
}
.ads-hub-head p{
  margin:5px 0 0;
  color:#9da6bf;
  font-size:11px;
  line-height:1.4;
}
.ads-action-grid{
  display:grid;
  gap:10px;
  margin-top:12px;
}
.ads-reward-card{
  width:100%;
  min-height:74px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:11px 12px;
  border-radius:18px;
  color:#fff;
  text-align:left;
  background:linear-gradient(135deg,rgba(131,145,255,.18),rgba(195,135,255,.10));
  border:1px solid rgba(159,168,255,.22);
}
.ads-reward-card:active{transform:scale(.99)}
.ads-card-icon{
  width:42px;height:42px;
  display:grid;place-items:center;
  border-radius:14px;
  background:rgba(255,255,255,.10);
  font-size:19px;
}
.ads-card-copy{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.ads-card-copy strong{font-size:13px}
.ads-card-copy small{font-size:10px;color:#adb5ce}
.ads-card-reward{
  padding:7px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.09);
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.ads-task-wrap{
  padding:11px;
  border-radius:18px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.065);
}
.ads-task-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.ads-task-label span{font-size:12px;font-weight:900}
.ads-task-label small{font-size:10px;color:#929bb4}
.adsgram-task{
  --adsgram-task-font-size:14px;
  --adsgram-task-icon-size:42px;
  --adsgram-task-icon-title-gap:10px;
  --adsgram-task-button-width:64px;
  --adsgram-task-icon-border-radius:12px;
  display:block;
  width:100%;
  padding:8px;
  border-radius:15px;
  background:#171b27;
  color:#fff;
  box-sizing:border-box;
}
.task-reward{font-size:11px;font-weight:900}
.task-button{
  padding:7px 10px;
  border-radius:10px;
  background:#6775ff;
  font-size:11px;
  font-weight:900;
}
.task-claim{background:#9b6cff}
.task-done{background:#3eaa78}
.ads-status-text{
  min-height:16px;
  margin-top:8px;
  font-size:10px;
  color:#aab3cc;
}


/* =========================================================
   V14 — database-driven style + Friend Connect
   ========================================================= */
.bottom-nav{
  grid-template-columns:repeat(5,1fr);
  gap:5px;
}
.nav-btn{
  padding:9px 4px;
  border-radius:16px;
}
.nav-btn span{font-size:20px}
.nav-btn small{font-size:10px}

.wearable-container{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:auto;
  pointer-events:none;
  line-height:1;
  filter:none;
  transform:none;
}
.wearable-item{
  position:absolute;
  height:auto;
  max-width:none;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
  transform-origin:center;
  filter:drop-shadow(0 5px 5px rgba(0,0,0,.18));
}
.pet-stage.stage-egg .wearable-container{display:none!important}

.style-screen{gap:12px}
.compact-wallet{padding:8px 11px;font-size:12px}
.style-preview-card{
  min-height:190px;
  border-radius:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:12px;
  background:
    radial-gradient(circle at 50% 30%,rgba(194,200,255,.28),transparent 42%),
    linear-gradient(180deg,rgba(123,137,255,.18),rgba(255,255,255,.035));
  border:1px solid rgba(255,255,255,.08);
  overflow:hidden;
}
.style-preview-stage{
  width:180px;
  height:160px;
  flex:0 0 auto;
  margin:0;
}
.style-preview-pet{font-size:100px}
.style-preview-meta{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.style-preview-meta strong{font-size:14px}
.style-preview-meta small{font-size:10px;color:#9ca5bf}

.style-filters{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:2px 0 5px;
  scrollbar-width:none;
}
.style-filters::-webkit-scrollbar{display:none}
.style-filter{
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,.075);
  background:rgba(255,255,255,.045);
  color:#b9c0d7;
  border-radius:999px;
  padding:8px 10px;
  font-size:10px;
  font-weight:850;
}
.style-filter.active{
  color:#fff;
  background:rgba(137,151,255,.18);
  border-color:rgba(157,168,255,.28);
}

.style-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.style-item-card{
  min-width:0;
  overflow:hidden;
  border-radius:19px;
  border:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.028));
}
.style-item-visual{
  position:relative;
  height:128px;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 50% 45%,rgba(173,182,255,.18),transparent 46%),
    rgba(255,255,255,.025);
}
.style-item-visual img{
  width:78%;
  height:78%;
  object-fit:contain;
  filter:drop-shadow(0 9px 12px rgba(0,0,0,.22));
}
.rarity-pill{
  position:absolute;
  top:8px;
  right:8px;
  padding:4px 6px;
  border-radius:999px;
  font-size:8px;
  font-weight:900;
  background:rgba(9,11,18,.48);
  border:1px solid rgba(255,255,255,.08);
}
.rarity-rare .rarity-pill{color:#bfc8ff}
.rarity-epic .rarity-pill{color:#e3baff}
.rarity-legendary .rarity-pill{color:#ffe0a3}
.style-item-copy{
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.style-item-heading{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.style-item-heading strong{
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.style-item-heading span{
  font-size:9px;
  color:#929ab3;
}
.style-item-copy p{
  min-height:28px;
  margin:0;
  color:#a8afc4;
  font-size:9px;
  line-height:1.45;
}
.style-buy-btn,.style-equip-btn{
  width:100%;
  border:0;
  border-radius:11px;
  padding:9px 8px;
  background:#eef0ff;
  color:#10131f;
  font-size:10px;
  font-weight:900;
}
.style-equip-btn{
  background:rgba(132,146,255,.16);
  color:#e9ebff;
  border:1px solid rgba(147,159,255,.22);
}
.style-equip-btn.equipped{
  background:rgba(107,219,163,.13);
  border-color:rgba(107,219,163,.22);
  color:#c7f6da;
}
.owned-style-thumb{
  width:26px;
  height:26px;
  object-fit:contain;
  vertical-align:middle;
}
.style-empty{
  grid-column:1/-1;
  padding:24px 12px;
  border-radius:18px;
  text-align:center;
  color:#9ca5bd;
  font-size:11px;
  background:rgba(255,255,255,.035);
}
.style-back-btn{width:100%}

/* Friend Connect */
.friends-screen{gap:12px}
.friend-invite-card{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:11px;
  align-items:center;
  padding:13px;
  border-radius:22px;
  background:linear-gradient(135deg,rgba(126,143,255,.16),rgba(195,134,255,.08));
  border:1px solid rgba(153,163,255,.18);
}
.friend-invite-icon{
  width:44px;height:44px;
  display:grid;place-items:center;
  border-radius:15px;
  background:rgba(255,255,255,.08);
  font-size:21px;
}
.friend-invite-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.friend-invite-copy strong{font-size:12px}
.friend-invite-copy small{font-size:9px;color:#9ea7c1}
.friend-code{
  font-size:13px;
  font-weight:950;
  letter-spacing:.08em;
  color:#fff;
}
.friend-invite-actions{display:flex;flex-direction:column;gap:6px}
.friend-small-btn{
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  padding:7px 9px;
  background:rgba(255,255,255,.06);
  color:#e8ebff;
  font-size:9px;
  font-weight:900;
}
.friend-small-btn.primary{
  background:#eef0ff;
  color:#111521;
}

.friend-connect-card{
  padding:12px;
  border-radius:18px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.065);
}
.friend-connect-card label{
  display:block;
  margin-bottom:7px;
  font-size:10px;
  font-weight:900;
}
.friend-connect-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:7px;
}
.friend-connect-row input{
  min-width:0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:11px;
  padding:10px 11px;
  background:#111522;
  color:#fff;
  outline:none;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-size:11px;
}
.friend-connect-row input:focus{
  border-color:rgba(145,157,255,.45);
}
.friend-connect-row button{
  border:0;
  border-radius:11px;
  padding:9px 12px;
  background:#8f9cff;
  color:#0e1220;
  font-size:10px;
  font-weight:950;
}
.friend-connect-card small{
  display:block;
  margin-top:7px;
  font-size:9px;
  color:#8992aa;
}
.friend-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 2px;
}
.friend-section-head strong{font-size:12px}
.friend-section-head span{
  min-width:24px;height:24px;
  display:grid;place-items:center;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  font-size:9px;
  font-weight:900;
}
.friends-list{display:flex;flex-direction:column;gap:8px}
.friend-card{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:10px;
  align-items:center;
  padding:11px;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.065);
}
.friend-pet-avatar{
  width:45px;height:45px;
  display:grid;place-items:center;
  border-radius:15px;
  background:rgba(143,156,255,.11);
  font-size:25px;
}
.friend-card-main{min-width:0}
.friend-card-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
}
.friend-card-title strong{
  font-size:11px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.friend-card-title span{font-size:9px;color:#b7bffb}
.friend-xp-track{
  height:5px;
  margin:7px 0 6px;
  overflow:hidden;
  border-radius:99px;
  background:rgba(255,255,255,.07);
}
.friend-xp-track i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#8f9cff,#c18bff);
}
.friend-card-meta{
  display:flex;
  justify-content:space-between;
  gap:7px;
  color:#9099b2;
  font-size:8px;
}
.friend-greet-btn{
  width:38px;height:38px;
  border:0;
  border-radius:13px;
  background:rgba(143,156,255,.15);
  color:#fff;
  font-size:17px;
}
.friend-greet-btn:disabled{opacity:.28}
.friend-empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  padding:30px 14px;
  border-radius:20px;
  background:rgba(255,255,255,.03);
  border:1px dashed rgba(255,255,255,.07);
  color:#9aa3ba;
  text-align:center;
}
.friend-empty span{font-size:28px}
.friend-empty strong{font-size:12px;color:#d7dbeb}
.friend-empty small{font-size:9px}

@media(max-width:390px){
  .nav-btn small{font-size:9px}
  .style-grid{grid-template-columns:1fr 1fr}
  .style-preview-card{min-height:170px}
  .style-preview-stage{width:145px;height:145px}
  .style-preview-pet{font-size:88px}
  .friend-invite-card{grid-template-columns:auto 1fr}
  .friend-invite-actions{grid-column:1/-1;flex-direction:row}
  .friend-small-btn{flex:1}
}


/* =========================================================
   V14.1 — compact main room
   ========================================================= */
.game-hud.compact{
  padding:0 2px 2px;
}
.game-hud .hud-subtle{
  display:none;
}
.pet-title-row h2{
  font-size:24px;
}
.stage-pill{
  padding:5px 8px;
  font-size:10px;
  max-width:170px;
}

.compact-room{
  height:360px;
  overflow:hidden;
}
.room-vitals-overlay{
  position:absolute;
  top:42px;
  left:12px;
  right:12px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  z-index:6;
}
.overlay-stat{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:8px 10px 12px;
  border-radius:14px;
  background:rgba(10,12,20,.40);
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(14px);
  overflow:hidden;
}
.overlay-stat > span{
  font-size:16px;
  line-height:1;
}
.overlay-stat-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:1px;
}
.overlay-stat-copy small{
  font-size:9px;
  color:#9ca5c0;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.overlay-stat-copy strong{
  font-size:11px;
  color:#fff;
}
.overlay-fill{
  position:absolute;
  left:0;
  bottom:0;
  display:block;
  height:3px;
  width:0;
  border-radius:99px;
  background:linear-gradient(90deg,#90a3ff,#ca8fff);
  transition:width .28s ease;
}
.room-lower-overlay{
  position:absolute;
  left:12px;
  right:12px;
  bottom:54px;
  z-index:6;
  display:grid;
  gap:7px;
}
.compact-state-row{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.compact-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:6px 8px;
  border-radius:999px;
  background:rgba(10,12,20,.40);
  border:1px solid rgba(255,255,255,.08);
  font-size:10px;
  color:#dfe4fb;
}
.compact-chip strong{
  font-size:10px;
}
.compact-need-flags{
  min-height:26px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.compact-need-flags .flag{
  margin:0;
  padding:5px 8px;
  font-size:10px;
  border-radius:999px;
  background:rgba(10,12,20,.40);
}
.room-inventory{
  padding:7px 8px;
  border-radius:15px;
  background:rgba(10,12,20,.42);
  border:1px solid rgba(255,255,255,.08);
}
.room-inventory div{
  padding:5px 2px;
}
.room-inventory span{
  font-size:17px;
}
.room-inventory strong{
  font-size:10px;
}
.compact-room .status-bubble{
  bottom:12px;
  max-width:76%;
}
.game-actions-card{
  padding:10px;
  border-radius:18px;
}
.section-heading{
  margin-bottom:6px;
}
.section-heading .subtle{
  display:none;
}
.game-actions{
  grid-template-columns:repeat(4,1fr);
  gap:6px;
}
.game-actions .action-btn{
  min-height:62px;
  padding:8px 4px;
  border-radius:14px;
  font-size:10px;
}
.game-actions .action-btn span{
  font-size:20px;
}
.game-actions .action-btn small{
  display:none;
}
.compact-home-shortcuts{
  grid-template-columns:1fr 1fr 1fr;
  gap:7px;
}
.compact-shortcut,
.wide-shortcut{
  min-height:64px;
  padding:9px 10px;
}
.wide-shortcut{
  grid-column:auto;
}
.home-card{
  border-radius:16px;
}
.home-card-icon{
  width:34px;
  height:34px;
  font-size:18px;
}
.home-card-copy strong{
  font-size:11px;
}
.home-card-copy small{
  font-size:10px;
}
.home-card-actions{
  display:none;
}
.shop-launch-card .wallet-inline{
  display:inline-flex;
}
.favorite-food-card{
  padding:10px 12px;
  border-radius:16px;
}
.favorite-food-actions{
  gap:6px;
}
.fav-food-btn{
  min-width:50px;
  padding:7px 6px;
}
.main-hidden-compat{
  display:none!important;
}
.game-details,
.dev-tools{
  display:none!important;
}
@media (max-width:420px){
  .compact-room{
    height:346px;
  }
  .room-vitals-overlay{
    gap:6px;
  }
  .overlay-stat{
    min-height:40px;
    padding:7px 8px 11px;
  }
  .compact-home-shortcuts{
    grid-template-columns:1fr 1fr;
  }
  .game-actions{
    grid-template-columns:repeat(4,1fr);
  }
}


/* =========================================================
   V14.2 — room integrated controls
   ========================================================= */
.room-actions-layout{
  height:440px!important;
  padding-top:0;
}
.game-home{
  gap:12px;
}
.room-title-overlay{
  position:absolute;
  left:14px;
  right:80px;
  top:14px;
  z-index:7;
}
.room-title-line{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:2px;
}
.room-title-line h2{
  margin:0;
  font-size:22px;
  line-height:1;
}
.room-title-overlay .stage-pill{
  margin:0;
}
.room-actions-layout .room-vitals-overlay{
  top:70px;
}
.room-actions-layout .pet-stage{
  transform:translateY(8px) scale(1.12);
  transform-origin:center;
}
.room-actions-layout .pet-avatar{
  font-size:122px!important;
}
.bigger-room-lower{
  bottom:52px;
  gap:8px;
}
.room-button-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:7px;
}
.inventory-action-btn,
.mini-room-action{
  border:1px solid rgba(255,255,255,.09);
  background:rgba(16,18,28,.44);
  color:#fff;
  border-radius:16px;
  backdrop-filter:blur(14px);
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}
.inventory-action-btn{
  min-height:64px;
  padding:8px 4px 7px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
}
.inventory-action-btn span{
  font-size:18px;
  line-height:1;
}
.inventory-action-btn small{
  font-size:9px;
  color:#9ea7c2;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.inventory-action-btn strong{
  font-size:12px;
}
.inventory-action-btn:disabled,
.mini-room-action:disabled{
  opacity:.38;
}
.mini-room-action{
  min-height:42px;
  padding:7px 6px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.mini-room-action span{
  font-size:16px;
  line-height:1;
}
.mini-room-action small{
  font-size:10px;
  color:#dbe0f7;
}
.room-utility-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
}
.room-actions-layout .status-bubble{
  bottom:10px;
  margin-top:0;
}
.compact-home-shortcuts{
  margin-top:0;
}
@media (max-width:420px){
  .room-actions-layout{
    height:424px!important;
  }
  .room-actions-layout .pet-avatar{
    font-size:114px!important;
  }
  .room-button-grid{
    gap:6px;
  }
  .inventory-action-btn{
    min-height:60px;
    padding:7px 3px 6px;
  }
  .inventory-action-btn small{
    font-size:8px;
  }
}


/* =========================================================
   V14.3 — clean room main screen
   ========================================================= */
.game-home{
  gap:10px;
}
.clean-room-layout{
  height:488px!important;
  padding:14px 14px 64px;
  justify-content:flex-start;
  border-radius:32px;
  overflow:hidden;
}
.clean-room-layout .room-glow{
  width:250px;
  height:250px;
  top:96px;
  background:rgba(255,255,255,.16);
}
.room-topbar{
  width:100%;
  display:flex;
  justify-content:space-between;
  gap:10px;
  z-index:7;
  position:relative;
}
.room-title-block{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.room-title-block h2{
  margin:0;
  font-size:20px;
  line-height:1.05;
  max-width:190px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.room-title-block .eyebrow{
  font-size:10px;
  letter-spacing:.15em;
}
.room-title-block .stage-pill{
  margin:0;
  align-self:flex-start;
  padding:4px 8px;
  font-size:10px;
}
.room-top-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}
.mini-meta-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:28px;
  padding:6px 8px;
  border-radius:999px;
  background:rgba(10,12,20,.36);
  border:1px solid rgba(255,255,255,.08);
  font-size:10px;
  color:#eef1ff;
  backdrop-filter:blur(14px);
}
.mini-meta-pill strong{
  font-size:11px;
}
.clean-room-layout .attention-badge{
  top:14px;
  right:14px;
  width:44px;
  height:44px;
  font-size:26px;
  z-index:9;
}
.room-status-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
  margin-top:10px;
  z-index:7;
}
.status-pill-card{
  position:relative;
  min-height:56px;
  padding:9px 10px 12px;
  border-radius:17px;
  background:rgba(10,12,20,.34);
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(14px);
  overflow:hidden;
}
.status-pill-head{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:3px;
}
.status-pill-head span{
  font-size:14px;
}
.status-pill-head small{
  font-size:9px;
  color:#a0a9c4;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.status-pill-card strong{
  display:block;
  font-size:13px;
  color:#fff;
}
.clean-room-layout .overlay-fill{
  position:absolute;
  left:0;
  bottom:0;
  height:3px;
  width:0;
  background:linear-gradient(90deg,#90a3ff,#cb8eff);
  border-radius:0 99px 99px 0;
}
.room-context-row{
  width:100%;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
  z-index:7;
}
.clean-room-layout .compact-chip{
  font-size:10px;
  padding:5px 8px;
}
.clean-room-flags{
  width:100%;
  min-height:24px;
  margin-top:6px;
  gap:6px;
  z-index:7;
}
.clean-room-flags .flag{
  padding:4px 8px;
  font-size:10px;
  backdrop-filter:blur(12px);
  background:rgba(10,12,20,.34);
  border:1px solid rgba(255,255,255,.08);
}
.clean-room-stage{
  position:relative;
  margin-top:2px;
  transform:none!important;
  min-height:122px;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:4;
}
.clean-room-layout .pet-avatar{
  font-size:118px!important;
  filter:drop-shadow(0 16px 18px rgba(0,0,0,.28));
}
.clean-action-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-top:auto;
  z-index:7;
}
.room-action-tile{
  min-height:64px;
  padding:8px 6px 7px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:16px;
  background:rgba(10,12,20,.42);
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  backdrop-filter:blur(14px);
  box-shadow:0 8px 22px rgba(0,0,0,.18);
}
.room-action-tile .action-icon{
  font-size:18px;
  line-height:1;
}
.room-action-tile small{
  font-size:9px;
  color:#aeb6cf;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.room-action-tile strong{
  font-size:12px;
  color:#fff;
}
.room-action-tile.utility{
  justify-content:center;
}
.room-action-tile.utility small{
  color:#e6ebff;
}
.room-action-tile:disabled{
  opacity:.35;
}
.clean-room-layout .status-bubble{
  position:absolute;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  margin:0;
  max-width:74%;
  text-align:center;
  z-index:8;
}
.clean-room-layout .sleep-overlay{
  z-index:8;
  padding-top:20px;
  font-size:14px;
}
.compact-home-shortcuts,
.home-shortcuts,
.shop-launch-card,
.daily-card,
.wardrobe-card{
  display:none!important;
}
.mainscreen-hidden-compat{
  display:none!important;
}
@media (max-width:420px){
  .clean-room-layout{
    height:470px!important;
    padding:12px 12px 62px;
  }
  .room-title-block h2{
    font-size:18px;
    max-width:160px;
  }
  .clean-room-layout .attention-badge{
    width:42px;
    height:42px;
  }
  .status-pill-card{
    min-height:52px;
    padding:8px 8px 11px;
  }
  .clean-room-layout .pet-avatar{
    font-size:110px!important;
  }
  .clean-action-grid{
    gap:7px;
  }
  .room-action-tile{
    min-height:60px;
    padding:7px 4px 6px;
  }
}
