/* Питомцы: единая адаптация для планшетов и VK Mini App desktop.
   Масштаб — от ширины центрального #content (cqw). Только CSS;
   не меняем таймеры, награды, анимации этажей и боевой модуль. */
@media (min-width: 601px) and (min-height: 600px) {
 body.catfight-tablet-layout #content :is(.pets-page,.farm-page,.missions-container,.mine-lobby,.mine-run-screen) {
  box-sizing:border-box;min-width:0;padding:clamp(10px,2.5cqw,20px)!important;
  font-size:clamp(14px,3.5cqw,24px);border-radius:clamp(12px,3cqw,24px);
 }
 body.catfight-tablet-layout #content :is(.pets-page,.farm-page,.missions-container) {
  min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;
 }
 body.catfight-tablet-layout #content .pets-title-wrapper {
  gap:clamp(12px,3cqw,24px);padding:clamp(10px,2.5cqw,20px) 0 clamp(4px,1cqw,8px);
 }
 body.catfight-tablet-layout #content .pets-title-text {font-size:clamp(18px,4.5cqw,36px)!important}
 body.catfight-tablet-layout #content :is(#petsHelpBtn,#farmHelpBtn,#boxesHelpBtn,#mineHelpBtn) {
  font-size:clamp(22px,5.5cqw,44px)!important;
 }
 body.catfight-tablet-layout #content :is(.pets-page,.farm-page,.missions-container,.mine-lobby,.mine-run-screen) .btn-glass {
  font-size:clamp(14px,3.5cqw,26px)!important;
  padding:clamp(7px,1.75cqw,14px) clamp(9px,2.25cqw,18px)!important;
  white-space:normal;
 }

 /* У этих экранов большинство размеров текста задано inline в JS. */
 body.catfight-tablet-layout #content :is(.pets-page,.farm-page,.missions-container,.mine-lobby,.mine-run-screen) :is([style*="font-size:8px"],[style*="font-size:9px"]) {
  font-size:clamp(10px,2.5cqw,18px)!important;
 }
 body.catfight-tablet-layout #content :is(.pets-page,.farm-page,.missions-container,.mine-lobby,.mine-run-screen) :is([style*="font-size:11px"],[style*="font-size:12px"]) {
  font-size:clamp(12px,3cqw,22px)!important;
 }
 body.catfight-tablet-layout #content :is(.pets-page,.farm-page,.missions-container,.mine-lobby,.mine-run-screen) :is([style*="font-size:13px"],[style*="font-size:14px"]) {
  font-size:clamp(13px,3.25cqw,24px)!important;
 }
 body.catfight-tablet-layout #content :is(.pets-page,.farm-page,.missions-container,.mine-lobby,.mine-run-screen) :is([style*="font-size:15px"],[style*="font-size:16px"]) {
  font-size:clamp(15px,3.75cqw,28px)!important;
 }
 body.catfight-tablet-layout #content :is(.pets-page,.farm-page,.missions-container,.mine-lobby,.mine-run-screen) :is([style*="font-size:18px"],[style*="font-size:20px"]) {
  font-size:clamp(18px,4.5cqw,34px)!important;
 }

 /* Коллекция, сортировка, ресурсы, карточки и панель переходов. */
 body.catfight-tablet-layout #content .pets-resources {
  gap:clamp(4px,1cqw,8px)!important;padding:0 clamp(8px,2cqw,16px) clamp(8px,2cqw,16px)!important;
 }
 body.catfight-tablet-layout #content :is(.slots-display,.pollen-display) {
  gap:clamp(5px,1.25cqw,10px)!important;font-size:clamp(14px,3.5cqw,26px);
 }
 body.catfight-tablet-layout #content .pollen-display img {
  width:clamp(20px,5cqw,40px)!important;height:clamp(20px,5cqw,40px)!important;
 }
 body.catfight-tablet-layout #content .pets-sort {
  gap:clamp(8px,2cqw,16px)!important;padding:clamp(4px,1cqw,8px) clamp(8px,2cqw,16px)!important;
 }
 body.catfight-tablet-layout #content .pets-sort .sort-btn {
  min-width:0;font-size:clamp(13px,3.25cqw,24px)!important;
  padding:clamp(6px,1.5cqw,12px) clamp(10px,2.5cqw,20px)!important;
 }
 body.catfight-tablet-layout #content #petsGrid {
  min-height:0;flex:1 1 auto;overflow-y:auto;
  gap:clamp(8px,2cqw,16px)!important;padding:clamp(4px,1cqw,8px) 0!important;
 }
 body.catfight-tablet-layout #content #petsGrid .pet-card {
  min-height:clamp(160px,40cqw,300px)!important;flex-shrink:0;
  gap:clamp(8px,2cqw,16px)!important;padding:clamp(10px,2.5cqw,20px)!important;
 }
 body.catfight-tablet-layout #content #petsGrid .pet-card .btn-action {
  min-width:0;font-size:clamp(13px,3.25cqw,25px)!important;
  padding:clamp(6px,1.5cqw,12px) 0!important;
 }
 body.catfight-tablet-layout #content #petsGrid .pet-card :is(.upgrade-btn,.transfer-btn,.delete-btn) {
  font-size:clamp(18px,4.5cqw,34px)!important;
 }
 body.catfight-tablet-layout #content #petsGrid .pet-card [style*="height:40px"] {
  height:clamp(40px,10cqw,80px)!important;
  min-height:clamp(40px,10cqw,80px)!important;
  max-height:clamp(40px,10cqw,80px)!important;
 }
 body.catfight-tablet-layout #content .pets-actions {
  gap:clamp(7px,1.75cqw,14px)!important;padding:clamp(8px,2cqw,16px) 0!important;
  flex-wrap:wrap;
 }
 body.catfight-tablet-layout #content .pets-actions > .btn-glass {
  flex:1 1 20%;min-width:0;
 }

 /* Ферма: яйца, скорлупа, инкубаторы, создание. */
 body.catfight-tablet-layout #content .farm-page :is(img[style*="width:24px"],img[style*="width:28px"]) {
  width:clamp(24px,6cqw,46px)!important;height:clamp(24px,6cqw,46px)!important;
 }
 body.catfight-tablet-layout #content .farm-page img[style*="width:40px"] {
  width:clamp(40px,10cqw,78px)!important;height:clamp(40px,10cqw,78px)!important;
 }
 body.catfight-tablet-layout #content .farm-page img[style*="width:60px"] {
  width:clamp(60px,15cqw,116px)!important;height:clamp(60px,15cqw,116px)!important;
 }
 body.catfight-tablet-layout #content .farm-page .incubator-slot {
  min-width:clamp(100px,25cqw,190px)!important;
  padding:clamp(10px,2.5cqw,20px)!important;
 }
 body.catfight-tablet-layout #content .farm-page :is([data-action="create-egg"],[data-action="accelerate"],[data-action="hatch"]) {
  font-size:clamp(12px,3cqw,24px)!important;
 }

 /* Магазин: ровно две колонки, пропорциональные коробки и яйца. */
 body.catfight-tablet-layout #content :is(#boxesGrid,#eggsGrid) {
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:clamp(12px,3cqw,24px)!important;min-width:0;
 }
 body.catfight-tablet-layout #content :is(#boxesGrid .box-card,#eggsGrid .egg-card) {
  min-width:0;padding:clamp(12px,3cqw,24px)!important;gap:clamp(4px,1cqw,8px)!important;
 }
 body.catfight-tablet-layout #content :is(#boxesGrid .box-image,#eggsGrid .egg-card > div:first-child) {
  width:clamp(90px,22.5cqw,170px)!important;height:clamp(90px,22.5cqw,170px)!important;
  max-width:100%;
 }
 body.catfight-tablet-layout #content :is(#boxesGrid .box-name,#eggsGrid .egg-card > div:nth-child(2)) {
  font-size:clamp(16px,4cqw,30px)!important;
 }
 body.catfight-tablet-layout #content :is(#boxesGrid .box-price,#eggsGrid .egg-card > div:nth-child(3)) {
  font-size:clamp(14px,3.5cqw,26px)!important;
 }
 body.catfight-tablet-layout #content :is(#boxesGrid .box-open-btn,#eggsGrid .egg-buy-btn) {
  font-size:clamp(14px,3.5cqw,26px)!important;
  padding:clamp(6px,1.5cqw,12px) 0!important;
 }

 /* Миссии: заголовок, прогресс, слоты и кнопки в списке. */
 body.catfight-tablet-layout #content .missions-container #missionsHeader {
  gap:clamp(12px,3cqw,24px)!important;
  padding:clamp(12px,3cqw,24px) clamp(16px,4cqw,32px)!important;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList {
  min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
  gap:clamp(10px,2.5cqw,20px)!important;
 }
 body.catfight-tablet-layout #content .missions-container .mission-card {
  flex-shrink:0;min-width:0;
  gap:clamp(8px,2cqw,16px)!important;
  padding:clamp(8px,2cqw,16px) clamp(10px,2.5cqw,20px)!important;
 }
 body.catfight-tablet-layout #content .mission-card > div:first-child {
  flex:0 0 clamp(32px,8cqw,64px)!important;
 }
 body.catfight-tablet-layout #content .mission-card > div:first-child img {
  width:clamp(32px,8cqw,64px)!important;height:clamp(32px,8cqw,64px)!important;
 }
 body.catfight-tablet-layout #content .mission-card > div:last-child {
  flex:0 0 clamp(80px,20cqw,158px)!important;min-width:0;
 }
 body.catfight-tablet-layout #content .mission-card .mission-slot {
  width:clamp(60px,15cqw,108px)!important;
  height:clamp(56px,14cqw,100px)!important;
 }
 body.catfight-tablet-layout #content .mission-card [style*="flex:0 0 60px"] {
  flex-basis:clamp(60px,15cqw,108px)!important;
 }
 body.catfight-tablet-layout #content .mission-card :is(.start-mission-btn,.claim-mission-btn) {
  font-size:clamp(10px,2.5cqw,18px)!important;
  padding:clamp(4px,1cqw,8px) 0!important;
 }

 /* Уточнённая адаптация только питомцевых миссий:
    старые универсальные правила раздували 8px подписи в узких слотах. */
 body.catfight-tablet-layout #content .missions-container > div:first-child {
  min-width:0;gap:clamp(7px,1.75cqw,12px);margin-bottom:0!important;flex-shrink:0;
 }
 body.catfight-tablet-layout #content .missions-container :is(#backFromMissionsBtn,#helpMissionsBtn) {
  box-sizing:border-box;flex:0 0 clamp(42px,10.5cqw,64px);
  width:clamp(42px,10.5cqw,64px);height:clamp(42px,10.5cqw,64px);
  padding:0!important;font-size:clamp(20px,5cqw,30px)!important;
  display:flex;align-items:center;justify-content:center;
 }
 body.catfight-tablet-layout #content .missions-container > div:first-child > div:nth-child(2) {
  min-width:0;margin:0 clamp(5px,1.25cqw,10px)!important;
  gap:clamp(7px,1.75cqw,12px)!important;
 }
 body.catfight-tablet-layout #content .missions-container > div:first-child > div:nth-child(2) > span:nth-child(2) {
  font-size:clamp(17px,4.25cqw,29px)!important;line-height:1.2;white-space:nowrap;
 }

 /* Первая строка: уровень и прогресс. Вторая: обновление и бесплатный лимит. */
 body.catfight-tablet-layout #content .missions-container #missionsHeader {
  box-sizing:border-box;display:grid!important;
  grid-template-columns:auto minmax(0,1fr);
  gap:clamp(10px,2.5cqw,17px)!important;
  align-items:center;min-width:0;
  padding:clamp(11px,2.75cqw,18px)!important;margin-bottom:0!important;
 }
 body.catfight-tablet-layout #content .missions-container #missionsHeader > div:first-child > span {
  display:block;white-space:nowrap;
  font-size:clamp(13px,3.25cqw,20px)!important;
  padding:clamp(7px,1.75cqw,12px) clamp(10px,2.5cqw,17px)!important;
 }
 body.catfight-tablet-layout #content .missions-container #missionsHeader > div:nth-child(2) {
  box-sizing:border-box;min-width:0;
 }
 body.catfight-tablet-layout #content .missions-container #missionsHeader > div:nth-child(2) > div:first-child {
  font-size:clamp(12px,3cqw,19px)!important;
 }
 body.catfight-tablet-layout #content .missions-container #missionsHeader > div:nth-child(2) > div:nth-child(2) {
  height:clamp(8px,2cqw,12px)!important;
  margin-top:clamp(5px,1.25cqw,9px)!important;
 }
 body.catfight-tablet-layout #content .missions-container #missionsHeader > div:last-child {
  box-sizing:border-box;grid-column:1/-1;min-width:0;
  display:grid!important;grid-template-columns:max-content minmax(0,1fr);
  align-items:center;gap:clamp(8px,2cqw,14px)!important;
 }
 body.catfight-tablet-layout #content .missions-container #refreshMissionsBtn {
  box-sizing:border-box;max-width:100%;min-width:0;
  min-height:clamp(40px,10cqw,58px);
  padding:clamp(8px,2cqw,13px) clamp(12px,3cqw,20px)!important;
  font-size:clamp(12px,3cqw,19px)!important;
  display:inline-flex;align-items:center;gap:clamp(5px,1.25cqw,8px);
  white-space:nowrap!important;
 }
 body.catfight-tablet-layout #content .missions-container #refreshMissionsBtn img {
  width:clamp(16px,4cqw,24px)!important;height:clamp(16px,4cqw,24px)!important;
  margin-left:0!important;object-fit:contain;
 }
 body.catfight-tablet-layout #content .missions-container #refreshStatus {
  box-sizing:border-box;min-width:0;
  font-size:clamp(11px,2.75cqw,17px)!important;
  line-height:1.3;word-break:normal;overflow-wrap:break-word;
 }
 body.catfight-tablet-layout #content .missions-container #refreshStatus:not(:empty) {
  padding:clamp(6px,1.5cqw,10px) clamp(9px,2.25cqw,15px);
  border:1px solid rgba(255,255,255,.12);
  border-radius:clamp(10px,2.5cqw,16px);
  background:rgba(255,255,255,.04);color:#b4c3d3!important;
 }
 body.catfight-tablet-layout #content .missions-container > div:has(+ #missionsList) {
  box-sizing:border-box;min-width:0;
  margin-bottom:0!important;padding:clamp(8px,2cqw,13px) clamp(3px,.75cqw,6px);
 }
 body.catfight-tablet-layout #content .missions-container > div:has(+ #missionsList) > span {
  font-size:clamp(15px,3.75cqw,24px)!important;line-height:1.3;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList {
  box-sizing:border-box;min-width:0;min-height:0;
  gap:clamp(10px,2.5cqw,18px)!important;
  padding:clamp(3px,.75cqw,6px) 0 clamp(12px,3cqw,20px)!important;
  overflow-x:hidden;
 }

 /* Карточка: иконка с текстом сверху, строка наград и действий снизу. */
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] {
  box-sizing:border-box;display:grid!important;min-width:0;
  grid-template-columns:clamp(48px,12cqw,76px) minmax(0,1fr);
  grid-template-rows:auto auto;
  gap:clamp(10px,2.5cqw,17px)!important;
  align-items:start!important;
  padding:clamp(12px,3cqw,20px)!important;
  border-radius:clamp(11px,2.75cqw,20px)!important;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] > div:first-child {
  grid-column:1;grid-row:1;flex:none!important;width:100%;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] > div:first-child > img {
  width:100%!important;height:auto!important;aspect-ratio:1/1;
  max-height:clamp(48px,12cqw,76px);object-fit:contain;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] > div:nth-child(2) {
  box-sizing:border-box;grid-column:2;grid-row:1;min-width:0;
  gap:clamp(6px,1.5cqw,10px)!important;padding:0!important;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] > div:nth-child(2) > div:first-child {
  font-size:clamp(15px,3.75cqw,24px)!important;line-height:1.25!important;
  word-break:normal;overflow-wrap:break-word;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] > div:nth-child(2) > div:nth-child(2) {
  font-size:clamp(12px,3cqw,19px)!important;line-height:1.4!important;
  word-break:normal;overflow-wrap:break-word;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] > div:nth-child(2) > div:nth-child(3) > div {
  box-sizing:border-box;min-width:0;max-width:100%;
  flex-wrap:wrap!important;justify-content:flex-start!important;
  gap:clamp(7px,1.75cqw,12px)!important;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] div:has(> .mission-slot) {
  box-sizing:border-box;min-width:0;
  flex:0 1 clamp(70px,17.5cqw,98px)!important;
  width:clamp(70px,17.5cqw,98px);
  gap:clamp(4px,1cqw,7px)!important;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] .mission-slot {
  box-sizing:border-box;
  width:clamp(65px,16.25cqw,90px)!important;
  height:clamp(62px,15.5cqw,86px)!important;
  max-width:100%;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] .mission-slot span {
  font-size:clamp(18px,4.5cqw,27px)!important;
 }
 /* Имена питомцев: одна строка, если помещаются; иначе — до двух строк. */
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] div:has(> .mission-slot) > span {
  box-sizing:border-box;display:-webkit-box;width:100%;max-width:100%!important;
  font-size:clamp(11px,2.75cqw,16px)!important;line-height:1.25!important;
  white-space:normal;overflow:hidden;text-overflow:clip;
  word-break:normal;overflow-wrap:anywhere;
  -webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] div:has(> .mission-slot) > div:last-child:not(.mission-slot) {
  box-sizing:border-box;width:100%;max-width:100%!important;
  font-size:clamp(10px,2.5cqw,14px)!important;line-height:1.25!important;
  white-space:normal;word-break:normal;overflow-wrap:break-word;
 }

 /* Награда, время и статус находятся в одной самостоятельной нижней панели. */
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] > div:last-child {
  box-sizing:border-box;grid-column:1/-1;grid-row:2;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto;
  align-items:center;gap:clamp(9px,2.25cqw,16px)!important;
  flex:none!important;width:auto!important;min-width:0;
  padding-top:clamp(10px,2.5cqw,17px);
  border-top:1px solid rgba(255,255,255,.09);
 }
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] > div:last-child > div:first-child {
  box-sizing:border-box;min-width:0;display:flex!important;
  flex-direction:row!important;align-items:center!important;
  flex-wrap:wrap;gap:clamp(7px,1.75cqw,12px)!important;
  width:auto!important;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] > div:last-child > div:first-child > span:first-child {
  box-sizing:border-box;width:auto!important;max-width:100%;flex:0 0 auto;
  font-size:clamp(10px,2.5cqw,15px)!important;
  padding:clamp(5px,1.25cqw,9px) clamp(8px,2cqw,13px)!important;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] > div:last-child > div:first-child > div {
  box-sizing:border-box;min-width:0;
  font-size:clamp(12px,3cqw,19px)!important;
  gap:clamp(4px,1cqw,7px)!important;
  white-space:nowrap;line-height:1.25;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] > div:last-child > div:first-child > div img {
  width:clamp(19px,4.75cqw,27px)!important;
  height:clamp(19px,4.75cqw,27px)!important;
  margin-right:0!important;object-fit:contain;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] > div:last-child > div:last-child {
  box-sizing:border-box;min-width:0;
  width:clamp(108px,27cqw,175px)!important;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] :is(.start-mission-btn,.claim-mission-btn),
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] > div:last-child > div:last-child > div {
  box-sizing:border-box;min-width:0;
  min-height:clamp(38px,9.5cqw,61px);
  padding:clamp(7px,1.75cqw,12px) clamp(6px,1.5cqw,11px)!important;
  font-size:clamp(11px,2.75cqw,17px)!important;
  line-height:1.2;white-space:nowrap;
  border-radius:clamp(19px,4.75cqw,30px)!important;
  gap:clamp(4px,1cqw,7px)!important;
 }
 body.catfight-tablet-layout #content .missions-container #missionsList .mission-card[data-id] > div:last-child > div:last-child i {
  font-size:clamp(11px,2.75cqw,17px)!important;
 }

 /* Список выбора питомца — не сжимает длинное имя и специализацию. */
 body.catfight-tablet-layout #petSelectionModal .pet-select-item {
  box-sizing:border-box;min-width:0;
  gap:clamp(9px,1.6vw,16px)!important;
  padding:clamp(9px,1.6vw,16px)!important;
 }
 body.catfight-tablet-layout #petSelectionModal .pet-select-item > div:nth-child(2) {
  min-width:0;flex:1 1 0;
 }
 body.catfight-tablet-layout #petSelectionModal .pet-select-item > div:nth-child(2) > div {
  min-width:0;flex-wrap:wrap;
 }
 body.catfight-tablet-layout #petSelectionModal .pet-select-item > div:nth-child(2) > div:first-child > span:first-child {
  font-size:clamp(13px,2.3vw,19px)!important;
  min-width:0;overflow-wrap:break-word;word-break:normal;
 }
 body.catfight-tablet-layout #petSelectionModal .pet-select-item > div:nth-child(2) > div:last-child {
  font-size:clamp(12px,2.1vw,17px)!important;
 }

 /* Шахта: лобби, пропуска, питомец и журнал забега.
    Геометрия mine-card и battleModal намеренно не затрагивается. */
 body.catfight-tablet-layout #content .mine-lobby {
  overflow-y:auto;-webkit-overflow-scrolling:touch;
 }
 body.catfight-tablet-layout #content .mine-lobby-title .title-text {
  font-size:clamp(18px,4.5cqw,34px);
  padding:0 clamp(12px,3cqw,22px);
 }
 body.catfight-tablet-layout #content .mine-lobby .help-btn {
  width:clamp(32px,8cqw,60px);height:clamp(32px,8cqw,60px);
  font-size:clamp(16px,4cqw,30px);
 }
 body.catfight-tablet-layout #content .mine-lobby .pet-card-compact {
  padding:clamp(10px,2.5cqw,20px) clamp(14px,3.5cqw,26px);
 }
 body.catfight-tablet-layout #content .mine-lobby .pet-avatar {
  width:clamp(60px,15cqw,116px);height:clamp(60px,15cqw,116px);
  margin-right:clamp(12px,3cqw,24px);
 }
 body.catfight-tablet-layout #content .mine-lobby :is(.pet-name,.ticket-number) {
  font-size:clamp(20px,5cqw,36px);
 }
 body.catfight-tablet-layout #content .mine-lobby :is(.pet-meta,.pet-spec,.ticket-label,.tickets-divider span) {
  font-size:clamp(14px,3.5cqw,26px);
 }
 body.catfight-tablet-layout #content .mine-lobby .mine-ticket-art {
  width:clamp(112px,24cqw,190px)!important;
  height:clamp(112px,24cqw,190px)!important;
  max-width:45%;object-fit:contain;
 }
 body.catfight-tablet-layout #content .mine-lobby #enterMineBtn {
  font-size:clamp(18px,4.5cqw,34px);
  padding:clamp(14px,3.5cqw,28px) 0;
 }
 body.catfight-tablet-layout #content .mine-run-screen #mineFoundLoot {
  font-size:clamp(14px,3.5cqw,26px);overflow-wrap:anywhere;
 }
 body.catfight-tablet-layout #content .mine-run-screen #mineLog {
  height:clamp(180px,45cqw,320px)!important;
  overflow-y:auto;-webkit-overflow-scrolling:touch;
  font-size:clamp(13px,3.25cqw,25px);
 }
 body.catfight-tablet-layout #content .mine-run-screen #mineExitRunBtn {
  font-size:clamp(14px,3.5cqw,25px)!important;
 }

 /* Дополнительные окна питомцев без стандартного .modal-content.
    Остальные уже используют modal-tablet.css (единая ширина). */
 body.catfight-tablet-layout #petSelectionModal > div:not(.modal-content),
 body.catfight-tablet-layout #boxResultModal > div {
  width:min(64vw,calc(100vw - 40px))!important;
  max-width:calc(100vw - 40px)!important;
  box-sizing:border-box;min-width:0;max-height:88dvh;
  overflow-y:auto;
 }

 /* Компактная горизонтальная карточка пропуска на планшетах. */
 body.catfight-tablet-layout #content .mine-lobby .mine-pass-card {
  width:100%;
  max-width:none;
  align-self:stretch;
  padding:clamp(10px,2cqw,14px);
 }
 body.catfight-tablet-layout #content .mine-lobby .mine-pass-title {
  gap:clamp(8px,1.8cqw,12px);
  margin-bottom:clamp(6px,1.3cqw,9px);
  font-size:clamp(14px,2.5cqw,17px);
 }
 body.catfight-tablet-layout #content .mine-lobby .mine-pass-summary {
  min-height:clamp(70px,13cqw,90px);
  gap:clamp(12px,3cqw,22px);
 }
 body.catfight-tablet-layout #content .mine-lobby .mine-ticket-art {
  width:clamp(100px,20cqw,132px)!important;
  height:clamp(76px,15cqw,100px)!important;
  max-width:45%;
 }
 body.catfight-tablet-layout #content .mine-lobby .mine-ticket-count {
  flex:0 1 clamp(132px,25cqw,164px);
  width:clamp(132px,25cqw,164px);
  min-height:clamp(48px,8cqw,58px);
  gap:clamp(6px,1.2cqw,9px);
  padding:clamp(5px,1cqw,7px) clamp(8px,1.5cqw,11px);
  border:1px solid rgba(255,255,255,0.72);
  border-radius:clamp(10px,2cqw,13px);
  background:transparent;
  box-shadow:none;
 }
 body.catfight-tablet-layout #content .mine-lobby .mine-ticket-count-value {
  margin:0;
  font-size:clamp(25px,4.5cqw,32px);
  color:#fff;
  text-shadow:none;
  left:50%;
  transform:translate(-50%,-50%);
 }
 body.catfight-tablet-layout #content .mine-lobby .mine-ticket-count-unit {
  right:clamp(8px,1.5cqw,11px);
  font-size:clamp(9px,1.5cqw,11px);
 }
 body.catfight-tablet-layout #content .mine-lobby .mine-ticket-actions {
  width:100%;
  max-width:none;
  gap:clamp(8px,1.5cqw,11px);
  margin-top:clamp(7px,1.4cqw,10px);
 }
 body.catfight-tablet-layout #content .mine-lobby .mine-ticket-action {
  min-width:0;
  min-height:clamp(42px,7cqw,52px);
  padding:clamp(6px,1.2cqw,8px) clamp(8px,1.5cqw,11px);
  border-radius:clamp(10px,2cqw,13px);
  font-size:clamp(12px,2cqw,14px);
 }
 body.catfight-tablet-layout #content .mine-lobby .mine-lobby-enter {
  margin-top:clamp(8px,1.5cqw,12px)!important;
  padding-top:0!important;
 }

}


/* Шахта во время забега: три карты занимают всю ширину игрового поля.
   Базовые 112x168 заданы inline в pet-mine.js, поэтому переопределяем
   только геометрию карт в планшетной/VK desktop-адаптации. */
@media (min-width: 601px) and (min-height: 600px) {
 body.catfight-tablet-layout #content .mine-run-screen #mineFloorContainer {
  box-sizing:border-box;width:100%;min-width:0;
 }
 body.catfight-tablet-layout #content .mine-run-screen #mineFloorContainer .mine-floor-wrapper {
  box-sizing:border-box;width:100%;min-width:0;
 }
 body.catfight-tablet-layout #content .mine-run-screen #mineFloorContainer .mine-floor-wrapper > div:nth-child(2) {
  box-sizing:border-box;display:flex!important;width:100%;
  gap:clamp(8px,1.6cqw,18px)!important;
  justify-content:space-between!important;align-items:stretch!important;
  padding:clamp(4px,1cqw,8px) 0!important;
 }
 body.catfight-tablet-layout #content .mine-run-screen #mineFloorContainer .mine-floor-wrapper > div:nth-child(2) > .mine-card {
  box-sizing:border-box;flex:1 1 0!important;flex-shrink:1!important;
  width:auto!important;min-width:0!important;max-width:none!important;
  height:auto!important;aspect-ratio:2 / 3;
  margin:0!important;
 }
 body.catfight-tablet-layout #content .mine-run-screen #mineFloorContainer .mine-floor-wrapper > div:nth-child(2) > .mine-card > .mine-card-image {
  box-sizing:border-box;width:100%!important;height:80%!important;
  max-width:100%;object-fit:contain;
 }
 body.catfight-tablet-layout #content .mine-run-screen #mineFloorContainer .mine-floor-wrapper > div:nth-child(2) > .mine-card > div {
  box-sizing:border-box;width:100%!important;
  min-height:clamp(30px,4.8cqw,48px);
  padding:clamp(6px,1.1cqw,11px) clamp(3px,.7cqw,7px)!important;
  font-size:clamp(13px,2.5cqw,22px)!important;
  line-height:1.15;
 }
 body.catfight-tablet-layout #content .mine-run-screen .mine-section-header {
  margin:clamp(9px,1.8cqw,16px) 0 clamp(5px,1cqw,9px)!important;
 }
 body.catfight-tablet-layout #content .mine-run-screen .mine-section-header > span:nth-child(2) {
  font-size:clamp(15px,2.8cqw,23px)!important;
 }
}

/* Бой в шахте: полноценная ширина viewport, включая баннер результата.
   Не изменяем JS, геометрию свайпов и события pointer/touch. */
@media (min-width: 601px) and (min-height: 600px) {
 body.catfight-tablet-layout #battleModal {
  box-sizing:border-box;
  padding:12px!important;
 }
 body.catfight-tablet-layout #battleModal > div:first-child {
  box-sizing:border-box;
  width:100%!important;
  max-width:none!important;
  height:calc(100dvh - 24px)!important;
  max-height:none!important;
  min-height:0;
  padding:clamp(12px,1.5vw,22px)!important;
  border-radius:clamp(14px,2vw,24px)!important;
 }
 /* Верхняя строка: жизни питомца, противник и полоса здоровья. */
 body.catfight-tablet-layout #battleModal > div:first-child > div:first-child {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  flex-shrink:0;
  gap:clamp(12px,1.8vw,28px)!important;
  padding:clamp(9px,1.2vw,17px) 0!important;
 }
 body.catfight-tablet-layout #battleModal > div:first-child > div:first-child > div {
  min-width:0;
  gap:clamp(8px,1.3vw,18px)!important;
 }
 body.catfight-tablet-layout #battleModal > div:first-child > div:first-child > div:first-child > img,
 body.catfight-tablet-layout #battleModal > div:first-child > div:first-child > div:last-child > div:last-child > img {
  width:clamp(70px,9.5vw,140px)!important;
  height:clamp(94px,12.5vw,184px)!important;
  object-fit:contain;
 }
 body.catfight-tablet-layout #battleModal #battleLives {
  box-sizing:border-box;
  min-width:0;
  flex-wrap:wrap!important;
  gap:clamp(4px,.6vw,9px)!important;
 }
 body.catfight-tablet-layout #battleModal #battleLives > img {
  width:clamp(26px,3.5vw,46px)!important;
  height:clamp(26px,3.5vw,46px)!important;
 }
 body.catfight-tablet-layout #battleModal > div:first-child > div:first-child > div:last-child > div:first-child {
  min-width:0;
 }
 body.catfight-tablet-layout #battleModal > div:first-child > div:first-child > div:last-child > div:first-child > div:first-child {
  font-size:clamp(18px,2.65vw,36px)!important;
  line-height:1.2;
  overflow-wrap:break-word;
 }
 body.catfight-tablet-layout #battleModal > div:first-child > div:first-child > div:last-child > div:first-child > div:nth-child(2) {
  height:clamp(15px,2vw,28px)!important;
  margin-top:clamp(6px,.7vw,11px)!important;
 }
 body.catfight-tablet-layout #battleModal #battleEnemyHPText {
  font-size:clamp(15px,2vw,26px)!important;
  margin-top:clamp(4px,.5vw,8px)!important;
 }
 body.catfight-tablet-layout #battleModal #battleTimerContainer {
  box-sizing:border-box;
  min-width:clamp(72px,8vw,122px)!important;
  padding:clamp(7px,1.2vw,16px) clamp(16px,2.4vw,34px)!important;
  font-size:clamp(33px,4.3vw,66px)!important;
  line-height:1.05;
  margin:clamp(5px,1vw,13px) auto!important;
 }
 /* Поле автоматически занимает всё пространство между шапкой и нижним краем. */
 body.catfight-tablet-layout #battleModal #battleFieldWrapper {
  box-sizing:border-box;
  width:100%!important;
  min-width:0;
  min-height:clamp(180px,28dvh,300px)!important;
  flex:1 1 auto!important;
  border-radius:clamp(12px,1.7vw,23px)!important;
  margin:clamp(5px,.9vw,13px) 0!important;
 }
 body.catfight-tablet-layout #battleModal #battleCountdown {
  font-size:clamp(110px,16vw,230px)!important;
 }
 /* Размер летящих значков задаёт createIcon(): JS синхронизирует визуальный
    размер, границы появления и интерактивную область свайпа. */
 /* Баннер победы / поражения. Исходные пропорции изображения — 2:1.
    На коротких экранах ширину ограничиваем высотой, без обрезки баннера. */
 body.catfight-tablet-layout #battleModal .battle-result-wrapper {
  box-sizing:border-box;
  width:min(calc(100vw - 24px),calc(200dvh - 64px))!important;
  height:auto!important;
  aspect-ratio:2 / 1;
  max-width:none!important;
  max-height:calc(100dvh - 32px);
 }
 body.catfight-tablet-layout #battleModal .battle-result-wrapper > img {
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  object-fit:contain;
  border-radius:clamp(12px,1.8vw,24px)!important;
 }
 body.catfight-tablet-layout #battleModal .battle-result-wrapper > button {
  box-sizing:border-box;
  width:clamp(145px,30%,400px);
  max-width:90%;
  min-height:clamp(46px,7dvh,78px);
  bottom:15%!important;
  padding:clamp(10px,1.7vw,22px) clamp(14px,2.5vw,36px)!important;
  border-radius:clamp(16px,2.5vw,30px)!important;
  font-size:clamp(18px,2.6vw,36px)!important;
  line-height:1.2;
  white-space:nowrap;
 }
}
