/**
 * Home rail: mode switch Знакомства / Батлы + battle cards.
 * Scoped to #cotinder-paw-home / [data-paw-home] only.
 */
#cotinder-paw-home .cotinder-paw-home__mode,
[data-paw-home] .cotinder-paw-home__mode {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(253, 119, 40, 0.08);
}

#cotinder-paw-home .cotinder-paw-home__mode-btn,
[data-paw-home] .cotinder-paw-home__mode-btn {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #8a5a3a;
  background: transparent;
  cursor: pointer;
}

#cotinder-paw-home .cotinder-paw-home__mode-btn.is-on,
[data-paw-home] .cotinder-paw-home__mode-btn.is-on {
  background: #fd7728;
  color: #fff;
  box-shadow: 0 4px 12px rgba(253, 119, 40, 0.35);
}

#cotinder-paw-home .cotinder-paw-home__card--battle,
[data-paw-home] .cotinder-paw-home__card--battle {
  display: flex;
  flex-direction: column;
  position: relative;
  background: #fff8f0;
}

#cotinder-paw-home .cotinder-paw-home__platform-hit,
[data-paw-home] .cotinder-paw-home__platform-hit {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  max-width: calc(100% - 20px);
  padding: 6px 10px;
  border-radius: 999px;
  background: #fd7728;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(253, 119, 40, 0.35);
}

#cotinder-paw-home .cotinder-paw-home__battle-open,
[data-paw-home] .cotinder-paw-home__battle-open {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

#cotinder-paw-home .cotinder-paw-home__card--battle .cotinder-paw-home__match-photo,
[data-paw-home] .cotinder-paw-home__card--battle .cotinder-paw-home__match-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

#cotinder-paw-home .cotinder-paw-home__battle-photos,
[data-paw-home] .cotinder-paw-home__battle-photos {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

#cotinder-paw-home .cotinder-paw-home__battle-photos img,
[data-paw-home] .cotinder-paw-home__battle-photos img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(80, 40, 10, 0.22);
  background: #f3e6d8;
}

#cotinder-paw-home .cotinder-paw-home__battle-type,
[data-paw-home] .cotinder-paw-home__battle-type {
  display: block;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c45a12;
  margin: 0 0 4px;
}

#cotinder-paw-home .cotinder-paw-home__battle-names,
[data-paw-home] .cotinder-paw-home__battle-names {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  color: #5a3420;
}

#cotinder-paw-home [data-paw-matches="battles"].cotinder-paw-home__matches,
[data-paw-home] [data-paw-matches="battles"].cotinder-paw-home__matches {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
  width: 100% !important;
}

#cotinder-paw-home [data-paw-matches="battles"] > .cotinder-paw-home__match,
[data-paw-home] [data-paw-matches="battles"] > .cotinder-paw-home__match {
  display: none !important;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  min-width: 0;
}

#cotinder-paw-home [data-paw-matches="battles"] > .cotinder-paw-home__match:nth-child(1),
[data-paw-home] [data-paw-matches="battles"] > .cotinder-paw-home__match:nth-child(1) {
  display: flex !important;
}

@media (min-width: 640px) and (max-width: 1199px) {
  #cotinder-paw-home [data-paw-matches="battles"].cotinder-paw-home__matches,
  [data-paw-home] [data-paw-matches="battles"].cotinder-paw-home__matches {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #cotinder-paw-home [data-paw-matches="battles"] > .cotinder-paw-home__match:nth-child(-n+2),
  [data-paw-home] [data-paw-matches="battles"] > .cotinder-paw-home__match:nth-child(-n+2) {
    display: flex !important;
  }
}

@media (min-width: 1200px) {
  #cotinder-paw-home [data-paw-matches="battles"].cotinder-paw-home__matches,
  [data-paw-home] [data-paw-matches="battles"].cotinder-paw-home__matches {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #cotinder-paw-home [data-paw-matches="battles"] > .cotinder-paw-home__match:nth-child(-n+3),
  [data-paw-home] [data-paw-matches="battles"] > .cotinder-paw-home__match:nth-child(-n+3) {
    display: flex !important;
  }
}

#cotinder-paw-home [data-paw-matches="battles"] > .cotinder-paw-home__match--battle,
[data-paw-home] [data-paw-matches="battles"] > .cotinder-paw-home__match--battle {
  flex-direction: column;
  align-items: stretch;
  height: 100%;
}

#cotinder-paw-home [data-paw-matches="battles"] .cotinder-paw-home__card--battle,
[data-paw-home] [data-paw-matches="battles"] .cotinder-paw-home__card--battle {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

#cotinder-paw-home .cotinder-paw-home__arena-link-wrap,
[data-paw-home] .cotinder-paw-home__arena-link-wrap {
  margin: 8px 0 0;
}

#cotinder-paw-home .cotinder-paw-home__arena-link,
[data-paw-home] .cotinder-paw-home__arena-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #c45a12;
  text-decoration: none;
}

#cotinder-paw-home .cotinder-paw-home__arena-link:hover,
[data-paw-home] .cotinder-paw-home__arena-link:hover {
  text-decoration: underline;
}

#cotinder-paw-home .cotinder-paw-home__card--arena-cta,
[data-paw-home] .cotinder-paw-home__card--arena-cta {
  min-height: 280px;
  justify-content: center;
  align-items: center;
  background: linear-gradient(160deg, #fff3e8, #ffe0c4);
  border: 2px dashed rgba(253, 119, 40, 0.45);
}

#cotinder-paw-home .cotinder-paw-home__arena-cta,
[data-paw-home] .cotinder-paw-home__arena-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 16px;
  text-align: center;
  color: #5a3420;
  text-decoration: none;
}

#cotinder-paw-home .cotinder-paw-home__arena-cta strong,
[data-paw-home] .cotinder-paw-home__arena-cta strong {
  font-size: 1.15rem;
  color: #c45a12;
}

#cotinder-paw-home .cotinder-paw-home__card--battle .cotinder-paw-home__hit,
[data-paw-home] .cotinder-paw-home__card--battle .cotinder-paw-home__hit {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: stretch;
  justify-content: stretch;
  padding: 0 10px 12px;
  box-sizing: border-box;
  width: 100%;
  margin-top: auto !important;
}

#cotinder-paw-home .cotinder-paw-home__card--battle .cotinder-paw-home__hit-btn,
[data-paw-home] .cotinder-paw-home__card--battle .cotinder-paw-home__hit-btn,
#cotinder-paw-home .cotinder-paw-home__card--battle .cotinder-paw-home__hit-btn--like,
[data-paw-home] .cotinder-paw-home__card--battle .cotinder-paw-home__hit-btn--like,
#cotinder-paw-home .cotinder-paw-home__card--battle .cotinder-paw-home__hit-btn--skip,
[data-paw-home] .cotinder-paw-home__card--battle .cotinder-paw-home__hit-btn--skip {
  flex: 1 1 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 6px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap;
  font-size: 13px !important;
  line-height: 1.1 !important;
}

