/* ===== source style 41: defense-mode-interface-css ===== */

/* ===== Defense mode placeholder: online card battle interface ===== */
.player-profile-link{cursor:pointer;border-radius:14px;padding:4px 6px;margin:-4px -6px;transition:background .16s ease,transform .16s ease}
.player-profile-link:active{transform:scale(.985);background:rgba(255,255,255,.07)}
.player-profile-link:focus-visible{outline:2px solid rgba(255,209,91,.75);outline-offset:3px}
#screen-defense{gap:0}
.defense-topbar{min-height:76px;padding:12px;border-radius:22px;margin-bottom:12px;background:linear-gradient(160deg,rgba(48,18,105,.72),rgba(18,6,47,.88));border:1px solid rgba(188,143,255,.24);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:space-between;gap:12px}
.defense-title-wrap{min-width:0}.defense-title-wrap h1{margin:0;font-size:20px;line-height:1;font-weight:1000;letter-spacing:-.25px}.defense-title-wrap p{margin:6px 0 0;color:var(--muted);font-size:12px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.defense-status-pill{min-height:38px;padding:0 12px;border-radius:999px;display:flex;align-items:center;gap:7px;flex:0 0 auto;background:linear-gradient(135deg,rgba(98,240,160,.18),rgba(85,197,255,.12),rgba(65,24,137,.78));border:1px solid rgba(98,240,160,.28);font-size:12px;font-weight:1000;color:#eafff5}.defense-status-pill span{color:#62f0a0;text-shadow:0 0 10px rgba(98,240,160,.55)}
.defense-panel{border-radius:24px;background:linear-gradient(160deg,rgba(55,21,120,.76),rgba(18,6,50,.94));border:1px solid rgba(188,143,255,.22);box-shadow:0 14px 32px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.07)}
.defense-hero-panel{min-height:138px;padding:16px;margin-bottom:12px;display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:12px;align-items:center;overflow:hidden;position:relative}.defense-hero-panel:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 82% 18%,rgba(85,197,255,.18),transparent 30%),linear-gradient(120deg,transparent 12%,rgba(255,255,255,.045),transparent 42%);pointer-events:none}.defense-hero-copy{position:relative;z-index:2;min-width:0}.defense-kicker{display:inline-flex;margin-bottom:7px;color:#ffd15b;font-size:11px;font-weight:1000;letter-spacing:.6px;text-transform:uppercase}.defense-hero-copy h2{margin:0 0 7px;font-size:22px;line-height:1.05;font-weight:1000;letter-spacing:-.4px}.defense-hero-copy p{margin:0;color:#d8cafa;font-size:12.5px;font-weight:900;line-height:1.35}.defense-hero-art{position:relative;z-index:2;width:88px;height:88px;border-radius:28px;display:grid;place-items:center;font-size:48px;background:linear-gradient(145deg,rgba(98,240,160,.16),rgba(85,197,255,.12),rgba(123,60,255,.34));border:1px solid rgba(255,255,255,.12);box-shadow:0 14px 28px rgba(0,0,0,.28),0 0 24px rgba(85,197,255,.16),inset 0 1px 0 rgba(255,255,255,.10)}
.defense-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.defense-stat{min-height:72px;border-radius:20px;padding:11px;background:linear-gradient(160deg,rgba(35,13,82,.78),rgba(13,5,39,.96));border:1px solid rgba(188,143,255,.18);box-shadow:0 10px 22px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.055)}.defense-stat b{display:block;font-size:19px;line-height:1;font-weight:1000}.defense-stat small{display:block;margin-top:7px;color:var(--muted);font-size:11px;font-weight:900}
.defense-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 2px 8px}.defense-section-head h2{margin:0;font-size:16px;font-weight:1000}.defense-section-head small{color:var(--muted);font-size:11px;font-weight:900;white-space:nowrap}.defense-deck-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-bottom:12px}.defense-card-slot{min-height:104px;border-radius:22px;padding:12px;text-align:left;background:linear-gradient(160deg,rgba(39,15,86,.82),rgba(13,5,39,.96));border:1px solid rgba(188,143,255,.18);box-shadow:0 12px 26px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.06);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.defense-card-slot:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 78% 8%,rgba(255,79,160,.14),transparent 32%);pointer-events:none}.defense-card-slot span{position:relative;z-index:2;font-size:31px}.defense-card-slot b{position:relative;z-index:2;font-size:14px;font-weight:1000}.defense-card-slot small{position:relative;z-index:2;color:#cbb9ee;font-size:10.5px;font-weight:900;line-height:1.2}.defense-card-slot.active{border-color:rgba(255,209,91,.44);box-shadow:0 0 0 1px rgba(255,209,91,.12),0 0 24px rgba(255,79,160,.18),0 12px 26px rgba(0,0,0,.34)}.defense-card-slot.locked{opacity:.64;filter:saturate(.5)}
.defense-log-panel{display:grid;gap:8px;padding-bottom:calc(86px + var(--safeBottom))}.defense-log-row{min-height:70px;border-radius:20px;padding:11px 12px;display:flex;align-items:center;gap:12px;background:linear-gradient(160deg,rgba(33,13,76,.82),rgba(12,4,34,.96));border:1px solid rgba(188,143,255,.16);box-shadow:0 10px 22px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.055)}.defense-log-row span{width:42px;height:42px;border-radius:16px;display:grid;place-items:center;font-size:24px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.09);flex:0 0 auto}.defense-log-row b{display:block;font-size:13px;font-weight:1000}.defense-log-row small{display:block;margin-top:4px;color:var(--muted);font-size:11px;font-weight:900;line-height:1.25}
@media(max-width:370px){.defense-topbar{min-height:72px;padding:10px;margin-bottom:10px}.defense-title-wrap h1{font-size:19px}.defense-title-wrap p{font-size:11px}.defense-hero-panel{grid-template-columns:minmax(0,1fr) 78px;min-height:126px;padding:14px}.defense-hero-copy h2{font-size:20px}.defense-hero-art{width:74px;height:74px;border-radius:24px;font-size:40px}.defense-deck-grid{gap:8px}.defense-card-slot{min-height:96px;border-radius:20px;padding:10px}.defense-log-row{min-height:66px}}


/* ===== source style 42: webp-stickers-level1-integration ===== */

.sticker-img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none;user-drag:none;user-select:none}
.emoji-bubble .sticker-img{width:86%;height:86%;filter:drop-shadow(0 6px 10px rgba(0,0,0,.28))}
.preview-sticker .sticker-img{width:94%;height:94%;filter:drop-shadow(0 8px 14px rgba(0,0,0,.28))}
.target .sticker-img{width:min(68vw,235px);height:min(68vw,235px);max-width:235px;max-height:235px;object-fit:contain}
.answer .sticker-img{width:88%;height:88%;filter:drop-shadow(0 6px 10px rgba(0,0,0,.24))}
.sticker-item .sticker-img{width:90%;height:90%;filter:drop-shadow(0 7px 12px rgba(0,0,0,.24))}
.sticker-cover .sticker-img{width:84%;height:84%;filter:drop-shadow(0 9px 16px rgba(0,0,0,.28))}
.claim-sticker-bubble .sticker-img{width:90%;height:90%;filter:drop-shadow(0 5px 8px rgba(0,0,0,.22))}
.main-sticker-card .stickers .sticker-img{width:34px;height:34px;display:inline-block}
.target:has(.sticker-img){font-size:0}
.answer:has(.sticker-img),.emoji-bubble:has(.sticker-img),.preview-sticker:has(.sticker-img),.sticker-item:has(.sticker-img),.claim-sticker-bubble:has(.sticker-img){font-size:0}
@media(max-width:370px){.target .sticker-img{width:min(68vw,200px);height:min(68vw,200px)}}


/* ===== source style 43: main-real-png-banners-base64 ===== */

/* ===== Real PNG banners for main popular/new sticker packs ===== */
.main-sticker-card.real-banner-card{
  padding:0!important;
  background:#12052f!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:0 14px 30px rgba(0,0,0,.30),0 0 18px rgba(255,79,160,.10),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
.main-sticker-card.real-banner-card:after{
  height:52%!important;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.72))!important;
  pointer-events:none;
}
.main-sticker-card.real-banner-card .stickers{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  padding:0!important;
  font-size:0!important;
  filter:none!important;
}
.main-sticker-card.real-banner-card .main-pack-banner-img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  -webkit-user-drag:none;
  user-drag:none;
  pointer-events:none;
}
.main-sticker-card.real-banner-card b{
  position:absolute!important;
  left:10px;
  right:10px;
  bottom:10px;
  z-index:3!important;
  font-size:14px!important;
  line-height:1.08;
  text-shadow:0 3px 12px rgba(0,0,0,.75);
}
.main-sticker-card.real-banner-card .pack-badge{
  position:absolute;
  top:9px;
  left:9px;
  z-index:3;
  min-height:24px;
  padding:0 8px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#ff4fa0,#ffd15b);
  color:#fff;
  border:1px solid rgba(255,255,255,.34);
  box-shadow:0 8px 18px rgba(0,0,0,.24);
  font-size:9.5px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.35px;
}
@media(max-width:370px){.main-sticker-card.real-banner-card b{font-size:12.5px!important;bottom:8px}.main-sticker-card.real-banner-card .pack-badge{top:7px;left:7px;font-size:8.5px;min-height:22px;padding:0 7px}}


/* ===== source style 44: ios-control-adaptation-final ===== */

/* ===== iOS control adaptation: touch ergonomics, safe areas, gestures ===== */
:root{
  --ios-tap:44px;
  --ios-active-scale:.965;
  --ios-home-extra:10px;
}
html.ios,
html.ios body{
  height:100%;
  overflow:hidden!important;
  overscroll-behavior:none;
  -webkit-text-size-adjust:100%;
  touch-action:manipulation;
}
html.ios body{
  position:fixed;
  inset:0;
  width:100%;
}
html.ios .stage{
  height:100svh!important;
  min-height:100svh!important;
  max-height:100svh!important;
  border-radius:0!important;
}
html.ios .screen{
  padding-top:calc(14px + var(--safeTop))!important;
  padding-bottom:calc(96px + var(--safeBottom) + var(--ios-home-extra))!important;
}
html.ios .nav{
  bottom:calc(10px + var(--safeBottom))!important;
  height:calc(66px + min(var(--safeBottom), 10px))!important;
  padding-bottom:calc(7px + min(var(--safeBottom), 8px))!important;
  border-radius:24px!important;
}
html.ios .nav button,
html.ios button,
html.ios .primary,
html.ios .ghost,
html.ios .claim-btn,
html.ios .shop-filter,
html.ios .main-sticker-card,
html.ios .game-entry-image-button,
html.ios .level-card,
html.ios .answer,
html.ios .booster,
html.ios .profile-action{
  min-height:var(--ios-tap);
  touch-action:manipulation;
  -webkit-tap-highlight-color:rgba(255,255,255,0);
}
html.ios button:active,
html.ios .primary:active,
html.ios .ghost:active,
html.ios .claim-btn:active,
html.ios .shop-filter:active,
html.ios .main-sticker-card:active,
html.ios .game-entry-image-button:active,
html.ios .answer:active,
html.ios .booster:active,
html.ios .profile-action:active{
  transform:scale(var(--ios-active-scale));
}
html.ios .levels,
html.ios .shop-feed,
html.ios .panel,
html.ios .pass-track,
html.ios .sticker-pack-body,
html.ios .avatar-picker-grid-wrap,
html.ios .strip,
html.ios .shop-filter-strip{
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}
html.ios .strip,
html.ios .shop-filter-strip{
  scroll-snap-type:x proximity;
  padding-left:2px;
  padding-right:2px;
}
html.ios .answer,
html.ios .shop-filter,
html.ios .main-sticker-card{
  scroll-snap-align:center;
}
html.ios .modal{
  padding:calc(16px + var(--safeTop)) 14px calc(16px + var(--safeBottom))!important;
}
html.ios .modal-card,
html.ios .sticker-pack-card,
html.ios #avatarModal .avatar-modal-card{
  max-height:calc(100svh - var(--safeTop) - var(--safeBottom) - 26px)!important;
}
html.ios .game-hud,
html.ios .player-topbar,
html.ios .shop-topbar,
html.ios .guide-topbar,
html.ios .pass-head-compact{
  min-height:74px!important;
}
html.ios .icon-btn,
html.ios .guide-back-btn,
html.ios .pass-handle,
html.ios .sticker-pack-close,
html.ios .sticker-pack-menu-btn,
html.ios .preview-close-btn{
  min-width:44px!important;
  min-height:44px!important;
}
html.ios .ios-edge-zone{
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:18px;
  z-index:500;
  pointer-events:none;
}
html.ios .ios-swipe-peek{
  transition:transform .18s cubic-bezier(.2,.85,.2,1), opacity .18s ease;
}
html.ios.ios-standalone .stage{
  padding-top:0!important;
}
@supports (-webkit-touch-callout:none){
  input,textarea,select{font-size:16px!important;}
}


/* ===== source style 45: embedded-defense-game-css ===== */

/* ===== Embedded Defense game screen ===== */
#screen-defense{
  padding:calc(14px + var(--safeTop)) 14px calc(88px + var(--safeBottom)) 14px !important;
  overflow:hidden !important;
  background:#090912;
}
@media(min-width:700px){
  #screen-defense{
    padding-top:56px !important;
  }
}
.defense-game-frame{
  width:100%;
  height:100%;
  border:0;
  display:block;
  background:#090912;
}
.nav{
  grid-template-columns:repeat(5,1fr) !important;
}
.nav button{
  min-width:0;
}
.nav button span{
  line-height:1;
}
@media(max-width:370px){
  .nav{
    left:10px;
    right:10px;
    gap:2px;
    padding:6px;
  }
  .nav button{
    font-size:9px;
  }
  .nav span{
    font-size:19px;
  }
}


/* ===== source style 46: defense-battle-parent-nav-hide ===== */

body.defenseBattleActive #bottomNav,
body.defenseOnlineSubActive #bottomNav{display:none!important}
body.defenseBattleActive #screen-defense{padding:0!important}
body.defenseBattleActive #screen-defense .defense-game-frame{height:100dvh!important;min-height:100dvh!important}


/* ===== source style 47: remove-home-navigation-final ===== */

/* Домой удалён: нижнее меню теперь 4 пункта, стартовый экран — Оборона. */
#bottomNav{grid-template-columns:repeat(4,1fr)!important;}
#bottomNav [data-home],#bottomNav .nav-home{display:none!important;}


/* ===== source style 48: defense-parent-levels-sync-final ===== */

/* Parent container sync for embedded Defense screen */
#screen-defense{
  background:
    radial-gradient(circle at 18% 0%,rgba(138,63,255,.25),transparent 24%),
    radial-gradient(circle at 92% 16%,rgba(255,79,160,.16),transparent 24%),
    linear-gradient(180deg,rgba(17,2,48,.98),rgba(7,2,22,.99))!important;
}
.defense-game-frame{background:transparent!important;}


/* ===== source style 49: defense-parent-no-black-bg-final ===== */

#screen-defense{
  background:
    radial-gradient(circle at 18% 0%,rgba(138,63,255,.25),transparent 24%),
    radial-gradient(circle at 92% 16%,rgba(255,79,160,.16),transparent 24%),
    linear-gradient(180deg,rgba(17,2,48,.98),rgba(7,2,22,.99))!important;
}
#screen-defense .defense-game-frame{background:transparent!important;}


/* ===== source style 50: defense-parent-final-no-black-v2 ===== */

#screen-defense{
  background:
    radial-gradient(circle at 18% 0%,rgba(138,63,255,.25),transparent 24%),
    radial-gradient(circle at 92% 16%,rgba(255,79,160,.16),transparent 24%),
    linear-gradient(180deg,rgba(17,2,48,.98),rgba(7,2,22,.99))!important;
}
#screen-defense .defense-game-frame{background:transparent!important;border:0!important;}


/* ===== source style 51: defense-card-gate-ui ===== */

#bottomNav button.defense-locked{opacity:.48;filter:grayscale(.45);}
#bottomNav button.defense-locked span:first-child{position:relative;}
#bottomNav button.defense-locked span:first-child:after{content:"🔒";position:absolute;right:-12px;top:-10px;font-size:12px;filter:none;}


/* ===== source style 52: defense-online-subscreen-space-fix-final ===== */

/* Online subpages: bottom nav is hidden, so do not reserve its 88px area. */
body.defenseOnlineSubActive #screen-defense{
  padding:0!important;
}
body.defenseOnlineSubActive #screen-defense .defense-game-frame{
  height:100dvh!important;
  min-height:100dvh!important;
}


/* ===== source style 53: levels-screen-clean-restore ===== */

/* Restore levels screen priority: keep the list almost fullscreen like the original prototype.
   Onboarding/Defense explanations are available via Profile/Defense tabs, not on the main levels feed. */
#screen-levels #prototypeOnboardingCard,
#screen-levels #defenseUnlockInfoCard{
  display:none!important;
}
#screen-levels .levels{
  flex:1 1 auto!important;
  min-height:0!important;
  padding-top:2px!important;
}
#screen-levels .player-topbar{
  flex:0 0 auto!important;
  margin-bottom:10px!important;
}
@media(max-width:370px){
  #screen-levels .player-topbar{margin-bottom:8px!important}
}


/* ===== source style 54: stijoy-card-table-battle-css ===== */

.onlineLiveBattle{padding:8px 0 82px!important}.liveBattleTop{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.liveBattleTop .ghost{min-height:38px!important;border-radius:15px!important;padding:0 12px!important}.cardBattleStatus{border-radius:16px;padding:9px 10px;margin:8px 0;background:rgba(255,255,255,.07);border:1px solid rgba(188,143,255,.16);font-size:12px;font-weight:950;color:#e8ddff;text-align:center}.cardBoard{display:grid;gap:8px;margin-top:8px}.cardBoardTitle{display:flex;justify-content:space-between;align-items:center;color:#d9c8ff;font-size:12px;font-weight:1000}.battleSlots{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.battleSlot{min-height:82px;border-radius:18px;background:rgba(0,0,0,.22);border:1px dashed rgba(255,255,255,.16);display:grid;place-items:center;position:relative;overflow:hidden}.battleSlot.empty:before{content:"+";font-size:22px;color:rgba(255,255,255,.34);font-weight:1000}.battleCard{width:100%;height:100%;border-radius:18px;padding:7px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:linear-gradient(160deg,rgba(74,35,145,.90),rgba(21,7,55,.98));border:1px solid rgba(188,143,255,.22);box-shadow:0 10px 24px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.08);animation:cardDrop .22s cubic-bezier(.2,.9,.2,1)}.battleCard .ic{font-size:28px;line-height:1}.battleCard b{display:block;max-width:100%;font-size:10px;line-height:1.05;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.battleCard small{display:block;font-size:10px;color:#ffd15b;font-weight:1000;margin-top:3px}.battleCard.fire{box-shadow:0 0 22px rgba(255,82,105,.28),inset 0 1px 0 rgba(255,255,255,.08)}.battleCard.ice{box-shadow:0 0 22px rgba(85,197,255,.28),inset 0 1px 0 rgba(255,255,255,.08)}.battleCard.shield{box-shadow:0 0 22px rgba(98,240,160,.26),inset 0 1px 0 rgba(255,255,255,.08)}.battleCard.storm{box-shadow:0 0 22px rgba(255,209,91,.25),inset 0 1px 0 rgba(255,255,255,.08)}@keyframes cardDrop{from{opacity:0;transform:translateY(12px) scale(.92)}to{opacity:1;transform:none}}.cardKeyboard{margin-top:10px;border-radius:21px;padding:10px;background:linear-gradient(160deg,rgba(39,15,86,.76),rgba(18,6,47,.92));border:1px solid rgba(188,143,255,.20);box-shadow:0 12px 30px rgba(0,0,0,.28)}.cardKeyboardTitle{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;color:#d9c8ff;font-size:12px;font-weight:1000}.cardKeys{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.cardKey{min-height:70px;border-radius:17px;padding:6px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(160deg,rgba(55,21,120,.80),rgba(21,7,55,.95));border:1px solid rgba(188,143,255,.18);box-shadow:0 9px 18px rgba(0,0,0,.22);font-weight:1000}.cardKey .ic{font-size:26px}.cardKey b{font-size:9px;margin-top:3px;line-height:1;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cardKey small{font-size:9px;color:#ffd15b;margin-top:3px}.cardKey.selected{border-color:rgba(255,209,91,.75);box-shadow:0 0 24px rgba(255,209,91,.24),0 9px 18px rgba(0,0,0,.22)}.cardKey:disabled{opacity:.45;filter:grayscale(.45)}.battleLog{margin-top:9px;border-radius:17px;padding:9px;background:rgba(0,0,0,.20);border:1px solid rgba(255,255,255,.10);max-height:120px;overflow:auto}.battleLog p{margin:0 0 5px;color:#d9c8ff;font-size:11px;font-weight:850;line-height:1.25}.battleResult{margin-top:9px;border-radius:18px;padding:12px;background:linear-gradient(135deg,rgba(255,209,91,.16),rgba(255,79,160,.12));border:1px solid rgba(255,209,91,.26);font-size:14px;font-weight:1000;text-align:center}.battleScore{color:#ffd15b;font-weight:1000}.battleHintMini{font-size:10.5px;color:#bfaee1;font-weight:900;margin-top:6px;text-align:center}@media(max-width:370px){.battleSlot{min-height:74px}.cardKey{min-height:62px}.cardKey .ic{font-size:23px}.battleCard .ic{font-size:25px}}


/* ===== source style 55: main-hard-unified-scale-v5 ===== */


/* ===== HARD FIX: unified main app scale ===== */
:root{--main-pad:12px;--main-head:62px;--main-gap:10px;--main-radius:18px;--main-nav:62px}
.screen{padding:calc(12px + var(--safeTop)) var(--main-pad) calc(78px + var(--safeBottom))!important;box-sizing:border-box!important}.topbar,.player-topbar,.shop-topbar{min-height:var(--main-head)!important;height:var(--main-head)!important;padding:8px 10px!important;margin:0 0 var(--main-gap)!important;border-radius:18px!important;box-sizing:border-box!important}.player-avatar-btn{width:42px!important;height:42px!important;min-width:42px!important}.player-avatar-icon{font-size:22px!important}.avatar-level-badge{min-width:26px!important;height:16px!important;font-size:7.8px!important}.player-copy h1{font-size:14px!important;line-height:1.05!important;max-width:160px!important}.player-energy-pill,.player-brush-pill,.shop-energy-pill,.shop-balance-pill,.pill{height:32px!important;min-height:32px!important;min-width:50px!important;font-size:13px!important;padding:0 9px!important}.nav{height:var(--main-nav)!important;border-radius:20px!important;padding:6px!important;left:12px!important;right:12px!important}.nav button{border-radius:15px!important;font-size:9px!important}.nav span{font-size:19px!important}#screen-levels .level-card{min-height:82px!important;margin-bottom:8px!important;border-radius:18px!important}#screen-levels .level-inner{min-height:82px!important;padding:8px!important;grid-template-columns:48px minmax(0,1fr) 82px!important;gap:8px!important}.level-num-box{width:45px!important;height:52px!important;border-radius:15px!important}.level-num-box b{font-size:21px!important}.level-copy .level-title{font-size:13px!important}.level-stars-line{font-size:13px!important}.level-meta-line{font-size:10px!important}.level-progress-row .bar{height:6px!important}#screen-levels .emoji-bubble{width:39px!important;height:39px!important;font-size:23px!important}#screen-levels .cluster{min-width:80px!important;height:58px!important}.defense-game-frame{width:100%!important;height:100%!important;border:0!important;display:block!important}



/* ===== source style 56: profile-inventory-remove-final ===== */

#screen-profile #openCardInventory,
#screen-profile .profile-action[aria-label="Инвентарь карт"]{display:none!important;}


/* ===== source style 57: collection-number-badge-remove-final ===== */

/* Hide numeric progress badge only on the Defense hub Collection tile */
.defenseCompactTile[data-nav="collection"] em{display:none!important;}


/* ===== source style 58: levels-rewards-no-xp-hard-final ===== */

/* Final: levels list has no XP/progress accumulation. Cards/boosters are shown only as 5-star rewards. */
#screen-levels .level-progress-row{display:none!important;}
#screen-levels .level-meta-line{margin-top:2px!important;}
#screen-levels .level-meta-line span:nth-child(n+3){display:none!important;}
#screen-levels .level-meta-line span{font-size:11px!important;}
#screen-levels .level-meta-line span:nth-child(2){color:#ffd15b!important;}
#screen-levels .level-card .level-copy{justify-content:center!important;}

