/* Фестиваль: Качалы vs Атакеры - светлая заявка, постеры без кропа */

.ka-page {
  --ka-ink: #15181a;
  --ka-sec: #6b7370;
  --ka-border: #e7e9e5;
  --ka-soft: #f4f5f4;
}

.ka-eyebrow {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ka-sec);
  line-height: 1.2;
}

.ka-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin: 0 0 12px;
}

.ka-title {
  margin: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
}

.ka-head__meta {
  margin: 0;
  flex: 0 1 auto;
  text-align: right;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ka-sec);
  font-weight: 600;
}

.ka-head__meta .msk-minsk-dates {
  font-weight: 800;
  color: var(--ka-ink);
}

@media (max-width: 640px) {
  .ka-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 10px;
  }

  .ka-head__meta {
    text-align: left;
    font-size: 12px;
  }
}

.ka-ux-compare {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8e6;
  border: 1px solid #e6c35c;
  font-size: 13px;
  font-weight: 700;
}

.ka-ux-compare__label {
  color: #6b5a20;
}

.ka-ux-compare__link {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d8c48a;
  color: #15181a;
  text-decoration: none;
}

.ka-ux-compare__link.is-active {
  background: #15181a;
  border-color: #15181a;
  color: #fff;
}

.ka-duel__fee {
  margin: 0 0 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-duel__flavor--quiet .ka-duel__tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ka-sec);
}

.ka-duel__assign-hint {
  margin: -2px 0 12px;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ka-sec);
}

.ka-howto--compact {
  padding-top: 12px;
  padding-bottom: 12px;
}

.ka-howto--compact .ka-howto__lead {
  margin-bottom: 10px;
}

.ka-howto--compact .ka-howto__more {
  margin: 0;
}

.ka-duel__flavor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 0 0 8px;
  text-align: center;
}

.ka-duel__count--pool {
  margin: 0 0 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ka-ink);
}

.ka-duel__actions--single {
  display: flex;
  justify-content: center;
}

.ka-duel__actions--single .ka-duel__action,
.ka-duel__actions--single .ka-btn {
  width: 100%;
  max-width: 320px;
}

@media (max-width: 640px) {
  .ka-duel__flavor {
    grid-template-columns: 1fr;
  }
}

.ka-tabs {
  margin-bottom: 14px;
}

.ka-flash {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.ka-flash--success {
  background: #eef8e4;
  color: var(--ka-ink);
}

.ka-flash--error {
  background: #fceee9;
  color: #7a2d1c;
}

/* ----- Постеры сверху ----- */

.ka-duel {
  margin: 8px 0 16px;
}

.ka-duel__posters {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center; /* VS по вертикали между афишами */
  margin-bottom: 12px;
}

.ka-duel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 48px;
  align-items: stretch; /* колонки одной высоты → кнопки на одной линии */
}

@media (max-width: 760px) {
  .ka-duel__posters {
    gap: 6px;
    margin-bottom: 8px;
  }

  .ka-duel__actions {
    gap: 8px 10px;
  }

  .ka-vs span {
    min-width: 36px;
    height: 36px;
    font-size: 11px;
  }

  /* Постеры на мобилке: полная афиша по ширине колонки — без cover/max-height */
  .ka-poster {
    border-radius: 10px;
    max-height: none;
    background: #111;
  }

  .ka-poster__img {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: unset;
    object-position: unset;
  }
}

.ka-duel__poster-col {
  min-width: 0;
  text-align: center;
}

.ka-duel__info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
  cursor: pointer;
  line-height: 1.2;
}

.ka-duel__info-btn:hover,
.ka-duel__info-btn:focus {
  color: var(--ka-ink);
  outline: none;
}

.ka-boards-note {
  margin: 0 0 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ka-sec);
}

.ka-pool__you {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef8d8;
  border: 1px solid #c5e085;
  color: #2a3a0f;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* 2. Cookie — компактная полоска внизу, не по центру контента */
body.ka-hub-page .cookieBox {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  max-width: none !important;
  width: 100% !important;
  border-radius: 0 !important;
  padding: 10px 14px !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px 12px !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

body.ka-hub-page .cookieBox__title {
  font-size: 13px !important;
  margin: 0 !important;
}

body.ka-hub-page .cookieBox__desc {
  font-size: 12px !important;
  margin: 0 !important;
  flex: 1 1 180px;
  line-height: 1.35 !important;
}

body.ka-hub-page .cookieBox__btn {
  width: auto !important;
  margin: 0 !important;
  flex: 0 0 auto;
  padding: 8px 14px !important;
}

@media (max-width: 990px) {
  body.ka-hub-page.v2-page:not(.v2-page--guest) .cookieBox {
    bottom: 72px !important;
  }
}

.ka-duel__poster-col.is-mine .ka-poster {
  box-shadow: 0 0 0 2px #15181a;
}

.ka-duel__side {
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.ka-poster {
  margin: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  border: 0.5px solid var(--ka-border);
  line-height: 0;
}

.ka-poster__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: top;
}

.ka-duel__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ka-sec);
}

.ka-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--ka-sec);
  cursor: pointer;
  flex: 0 0 auto;
}

.ka-tip i {
  font-size: 16px;
  line-height: 1;
}

.ka-tip:hover,
.ka-tip:focus {
  color: var(--ka-ink);
}

.ka-duel__count {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-duel__name {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}

.ka-duel__action,
.ka-duel__side > .ka-btn {
  margin-top: auto; /* кнопки «За …» на одной высоте */
  align-self: stretch;
  width: 100%;
}

.ka-duel__action {
  margin-bottom: 0;
}

.ka-duel__mine {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-ink);
}

.ka-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 0;
}

.ka-vs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 0.5px solid var(--ka-border);
  color: var(--ka-sec);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ka-side__name--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Что дальше ----- */

.ka-howto {
  margin-bottom: 16px;
}

.ka-howto__lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ka-ink);
}

.ka-howto__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.ka-howto__steps li {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ka-soft);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ka-sec);
}

.ka-howto__steps strong {
  color: var(--ka-ink);
}

.ka-howto__more {
  margin: 14px 0 0;
}

@media (min-width: 761px) {
  .ka-howto__steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ka-format {
  padding: 20px 18px 22px;
}

.ka-format__hero {
  margin-bottom: 16px;
}

.ka-format__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  color: var(--ka-ink);
}

.ka-format__lead {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ka-ink);
}

.ka-format__p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ka-sec);
}

.ka-format__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.ka-format__chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ka-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-format__chip span {
  color: var(--ka-ink);
  font-weight: 800;
  margin-right: 4px;
}

.ka-format__block {
  margin: 0 0 16px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  background: var(--ka-soft);
}

.ka-format__block--accent {
  background: #eef8e4;
}

.ka-format__h {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ka-ink);
}

.ka-format__list,
.ka-format__cats {
  margin: 0 0 10px;
  padding: 0 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ka-ink);
}

.ka-format__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.ka-format__cats li {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 0.5px solid var(--ka-border);
  font-size: 12px;
  font-weight: 700;
}

.ka-format__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ka-sec);
}

.ka-format__cta {
  margin: 8px 0 0;
}

.ka-soon {
  text-align: center;
  padding: 36px 20px;
}

.ka-soon__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ka-ink);
}

.ka-soon__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ka-sec);
  font-weight: 600;
}


/* ----- Кнопки ----- */

.ka-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 0.5px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ka-btn--block {
  width: 100%;
}

.ka-btn--pick {
  background: #eef8e4;
  border-color: rgba(183, 224, 0, 0.55);
  color: #1f1f1f;
  box-shadow: 0 1px 0 rgba(31, 31, 31, 0.04);
}

.ka-btn--pick:hover,
.ka-btn--pick:focus {
  background: #b7e000;
  border-color: #a3cc00;
  color: #1f1f1f;
  text-decoration: none;
  box-shadow: 0 0 0 3px rgba(183, 224, 0, 0.28);
}

.ka-btn--pick:active {
  background: #a3cc00;
  border-color: #92b800;
  color: #fff;
  box-shadow: none;
}

.ka-btn--soft {
  background: #fff;
  border-color: var(--ka-border);
  color: var(--ka-sec);
}

.ka-btn--soft:hover {
  background: var(--ka-soft);
  color: var(--ka-ink);
}

/* ----- Общий пул заявок ----- */

.ka-pool {
  margin: 0 0 14px;
  padding: 14px 16px 12px;
}

.ka-pool__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin: 0 0 8px;
}

.ka-pool__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ka-ink);
  line-height: 1.2;
}

.ka-pool__meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-pool__note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef6ff;
  border: 1px solid #d4e6f8;
  color: #1e3a5f;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.ka-pool__faces {
  margin-bottom: 10px;
}

.ka-pool__faces .is-me a,
.ka-pool__faces .is-me .ka-wall__fallback {
  box-shadow: 0 0 0 2px #15181a;
}

.ka-pool__names .is-me a {
  font-weight: 800;
  text-decoration: underline;
}

.ka-list-ab {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 2px solid #15181a;
  border-radius: 10px;
  background: #fff8e8;
  box-shadow: 0 4px 14px rgba(21, 24, 26, 0.08);
}

.ka-list-ab__label {
  font-size: 12px;
  font-weight: 800;
  color: #15181a;
  margin-right: 2px;
}

.ka-list-ab__btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid #15181a;
  background: #fff;
  color: #15181a;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.ka-list-ab__btn.is-active {
  background: #15181a;
  color: #fff;
}

.ka-vote-panel {
  margin: 0 0 14px;
  padding: 14px 16px 12px;
  border: 2px solid #15181a;
}

.ka-vote-panel__head {
  margin: 0 0 6px;
}

.ka-vote-panel__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ka-ink);
  line-height: 1.2;
}

.ka-vote-note {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ka-sec);
}

.ka-vote-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
}

.ka-vote-search {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.ka-vote-search__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ka-sec);
}

.ka-vote-search__input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1.5px solid #15181a;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ka-ink);
  box-sizing: border-box;
}

.ka-vote-search__input:focus {
  outline: 2px solid rgba(45, 90, 26, 0.35);
  outline-offset: 1px;
}

.ka-vote-toolbar__hint {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ka-ink);
}

.ka-vote-toolbar__meta {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-vote-more {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(21, 24, 26, 0.35);
  background: #f7f7f6;
}

.ka-vote-more__banner {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ka-sec);
}

.ka-vote-more__banner strong {
  font-weight: 800;
  color: #15181a;
}

.ka-vote-more__link {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: #15181a;
  font: inherit;
  font-size: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
}

.ka-vote-empty-search {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-sec);
  text-align: center;
}

.ka-vote-empty-search[hidden],
.ka-vote-more[hidden] {
  display: none !important;
}

.ka-vote-row.is-me {
  background: #f5f8f3;
  border-radius: 10px;
  padding-left: 8px;
  padding-right: 8px;
  margin: 0 -8px;
}

.ka-vote-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ka-vote-list--grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 700px) {
  .ka-vote-list--grid {
    grid-template-columns: 1fr 1fr;
  }

  .ka-vote-list--grid .ka-vote-row {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--ka-border);
    border-radius: 10px;
    border-top: 1px solid var(--ka-border);
  }

  .ka-vote-list--grid .ka-vote-row:first-child {
    padding-top: 10px;
  }

  .ka-vote-list--grid .ka-vote.ka-reactions {
    width: 100%;
    align-items: flex-start;
  }
}

.ka-face-vote {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 8px;
}

@media (min-width: 520px) {
  .ka-face-vote {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .ka-face-vote {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.ka-face-vote__item {
  margin: 0;
  min-width: 0;
}

.ka-face-vote__open {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.ka-face-vote__av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ka-soft);
  display: block;
}

.ka-face-vote__av--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--ka-ink);
}

.ka-face-vote__item.is-me .ka-face-vote__av {
  box-shadow: 0 0 0 2px #15181a;
}

.ka-face-vote__item.is-voted .ka-face-vote__av {
  box-shadow: 0 0 0 2px rgba(45, 90, 26, 0.55);
}

.ka-face-vote__item.is-me.is-voted .ka-face-vote__av {
  box-shadow: 0 0 0 2px #15181a, 0 0 0 4px rgba(45, 90, 26, 0.35);
}

.ka-face-vote__name {
  max-width: 100%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ka-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.ka-face-vote__tally {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 16px;
  font-size: 11px;
  font-weight: 800;
  color: #6b726e;
  font-variant-numeric: tabular-nums;
}

.ka-face-vote__tally.is-empty {
  opacity: 0.35;
}

.ka-face-vote__tally i {
  font-style: normal;
  opacity: 0.55;
}

.ka-face-vote__home {
  display: none;
}

.ka-vote-sheet {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ka-vote-sheet[hidden] {
  display: none !important;
}

.ka-vote-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(21, 24, 26, 0.42);
  cursor: pointer;
}

.ka-vote-sheet__card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(78vh, 560px);
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  border: 2px solid #15181a;
  border-bottom: 0;
  padding: 16px 16px 22px;
  box-shadow: 0 -10px 30px rgba(21, 24, 26, 0.18);
}

@media (min-width: 700px) {
  .ka-vote-sheet {
    align-items: center;
    padding: 24px;
  }

  .ka-vote-sheet__card {
    border-radius: 14px;
    border-bottom: 2px solid #15181a;
  }
}

.ka-vote-sheet__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #6b726e;
  cursor: pointer;
  padding: 4px 8px;
}

.ka-vote-sheet__title {
  margin: 0 36px 4px 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ka-ink);
  line-height: 1.2;
}

.ka-vote-sheet__profile {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-vote-sheet__slot .ka-vote.ka-reactions {
  width: 100%;
  align-items: stretch;
}

.ka-vote-sheet__slot .ka-react-units {
  width: 100%;
  justify-content: stretch;
}

.ka-vote-sheet__slot .ka-react-unit {
  flex: 1 1 0;
}

body.ka-sheet-open {
  overflow: hidden;
}

.ka-lean {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ka-lean__score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "k mid a"
    "sub sub sub";
  align-items: center;
  gap: 4px 10px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 2px solid #15181a;
  background: linear-gradient(90deg, #f3f7f1 0%, #fff 48%, #f7f3f1 100%);
}

.ka-lean__score-side {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ka-lean__score-side--kachaly {
  grid-area: k;
  justify-content: flex-start;
}

.ka-lean__score-side--atakers {
  grid-area: a;
  justify-content: flex-end;
}

.ka-lean__score-mid {
  grid-area: mid;
  font-size: 18px;
  font-weight: 800;
  color: #9aa19c;
}

.ka-lean__score-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--ka-ink);
}

.ka-lean__score-num {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #15181a;
}

.ka-lean__score-sub {
  grid-area: sub;
  margin: 4px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-lean__duel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ka-lean__zone {
  margin: 0;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--ka-border);
  background: #fff;
  min-width: 0;
}

.ka-lean__zone--kachaly {
  background: #f5f8f3;
  border-color: rgba(45, 90, 26, 0.22);
}

.ka-lean__zone--atakers {
  background: #faf5f2;
  border-color: rgba(120, 60, 30, 0.18);
}

.ka-lean__zone--undecided {
  background: #f7f7f6;
}

.ka-lean__zone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}

.ka-lean__zone-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--ka-ink);
}

.ka-lean__zone-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #15181a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.ka-lean__zone-hint {
  margin: -2px 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ka-sec);
  line-height: 1.3;
}

.ka-lean__empty {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #9aa19c;
  text-align: center;
}

.ka-lean__empty[hidden] {
  display: none !important;
}

/* Плотная стена: 3–4 лица в ряду (зоны на всю ширину) */
.ka-face-vote--lean {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 6px;
}

.ka-lean .ka-face-vote__av {
  width: 48px;
  height: 48px;
}

.ka-lean .ka-face-vote__name {
  font-size: 10px;
}

.ka-lean .ka-face-vote__tally {
  font-size: 10px;
}

@media (min-width: 420px) {
  .ka-face-vote--lean {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .ka-face-vote--lean {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ka-lean .ka-face-vote__av {
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 960px) {
  .ka-face-vote--lean {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.ka-face-vote__item--moved .ka-face-vote__av {
  animation: ka-face-pop 0.45s ease;
}

@keyframes ka-face-pop {
  0% { transform: scale(0.92); }
  45% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@media (max-width: 419px) {
  .ka-lean__score-num {
    font-size: 22px;
  }

  .ka-lean__score-name {
    font-size: 12px;
  }
}

.ka-lean-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 6px;
}

.ka-lean-summary__item {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--ka-border);
  background: var(--ka-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-sec);
  cursor: pointer;
  line-height: 1.2;
  opacity: 0.45;
  transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  min-width: 7.5rem;
  text-align: left;
}

.ka-lean-summary__name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
}

.ka-lean-summary__stats {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.ka-lean-summary__us {
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-lean-summary__us b {
  font-weight: 800;
  color: var(--ka-ink);
  font-variant-numeric: tabular-nums;
}

.ka-lean-summary__item.is-active {
  opacity: 1;
}

.ka-lean-summary__item.is-selected {
  opacity: 1;
  border-color: #9aa3a0;
  box-shadow: inset 0 0 0 1px rgba(21, 24, 26, 0.06);
}

.ka-lean-summary__item strong {
  color: var(--ka-ink);
  font-weight: 800;
}

.ka-lean-summary__item--kachaly.is-active strong,
.ka-lean-summary__item--kachaly.is-selected strong {
  color: #1f6b4a;
}

.ka-lean-summary__item--atakers.is-active strong,
.ka-lean-summary__item--atakers.is-selected strong {
  color: #8a3a2a;
}

.ka-lean-summary__hint {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ka-sec);
  line-height: 1.35;
}

.ka-lean-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  line-height: 1.35;
  border: 1px solid transparent;
  white-space: nowrap;
}

.ka-lean-badge--kachaly {
  color: #145a3c !important;
  background: #e7f6ee;
  border-color: #b7dfc8;
}

.ka-lean-badge--atakers {
  color: #7a2f22 !important;
  background: #f8ebe7;
  border-color: #e2c0b5;
}

.ka-lean-badge--universal {
  color: #4a5560 !important;
  background: #eef1f3;
  border-color: #d5dbe0;
}

.ka-vote-zone {
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--ka-border);
}

.ka-vote-zone[hidden],
.ka-vote-zone.is-folded:not(.is-search-hit) {
  display: none !important;
}

.ka-vote-zone:first-child {
  margin-top: 0;
}

.ka-vote-zone__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ka-ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ka-vote-zone--kachaly .ka-vote-zone__title {
  color: #1f6b4a;
}

.ka-vote-zone--atakers .ka-vote-zone__title {
  color: #8a3a2a;
}

.ka-vote-zone__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-vote-zone__count {
  font-weight: 800;
  color: var(--ka-sec);
}

.ka-vote-zone__us b {
  font-weight: 800;
  color: var(--ka-ink);
  font-variant-numeric: tabular-nums;
}

.ka-vote-row__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}

.ka-vote-row__us {
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-vote-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--ka-border);
}

/* display:flex выше перебивает нативный [hidden] — прячем явно */
.ka-vote-row[hidden],
.ka-vote-row.is-folded:not(.is-search-hit) {
  display: none !important;
}

.ka-vote-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.ka-vote-row__who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ka-vote-row__av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--ka-soft);
}

.ka-vote-row__av--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--ka-ink);
}

.ka-vote-row__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ka-vote-row__meta a {
  color: var(--ka-ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.ka-vote-row__meta .ka-vote-row__us {
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-reaction-who-popup__title {
  margin: 0 28px 8px 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b726e;
}

.ka-vote.ka-reactions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.ka-vote__self {
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-react-units {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ka-react-unit {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: stretch;
  height: 36px;
  border-radius: 10px;
  background: #f0f1f0;
  border: 1px solid rgba(31, 31, 31, 0.06);
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
}

.ka-react-unit__icon {
  appearance: none;
  -webkit-appearance: none;
  min-width: 76px;
  height: 36px;
  padding: 0 12px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #6b726e;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  line-height: 1;
}

.ka-react-unit__icon.is-static {
  cursor: default;
  opacity: 0.75;
}

.ka-react-unit__icon.is-pending {
  opacity: 0.55;
  pointer-events: none;
}

.ka-react-unit__icon.is-active,
.ka-react-unit.is-active .ka-react-unit__icon {
  color: #15181a;
  background: rgba(45, 90, 26, 0.08);
}

.ka-react-unit__icon:active:not(.is-static) {
  box-shadow: inset 0 0 0 999px rgba(45, 90, 26, 0.08);
}

.ka-react-unit__who {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  border-left: 1px solid rgba(31, 31, 31, 0.12);
  min-width: 32px;
  height: 36px;
  padding: 0 11px;
  margin: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #6b726e;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex-shrink: 0;
  box-sizing: border-box;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  border-radius: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* точки под числом — как «кто лайкнул» на матче */
.ka-react-unit__who::after {
  content: '';
  display: block;
  width: 12px;
  height: 0;
  border-bottom: 2px dotted currentColor;
  opacity: 0.55;
  margin-top: 1px;
}

.ka-react-unit__who:active {
  box-shadow: inset 0 0 0 999px rgba(45, 90, 26, 0.1);
}

.ka-react-unit__who.is-empty {
  display: none;
}

.ka-react-who-pane {
  display: none !important;
}

.ka-reaction-who-popup {
  position: absolute;
  z-index: 1200;
  width: 260px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid rgba(31, 31, 31, 0.12);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(21, 24, 26, 0.16);
  padding: 10px 10px 8px;
  box-sizing: border-box;
}

.ka-reaction-who-popup[hidden] {
  display: none !important;
}

.ka-reaction-who-popup__close {
  position: absolute;
  top: 4px;
  right: 6px;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: #6b726e;
  cursor: pointer;
  padding: 4px;
}

.ka-reaction-who-popup__items {
  max-height: 240px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.ka-react-who-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ka-react-who-item__link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  color: #15181a;
}

.ka-react-who-item__av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #eef0ee;
}

.ka-react-who-item__av--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.ka-react-who-item__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ka-react-who-item__date {
  font-size: 11px;
  font-weight: 600;
  color: #6b726e;
  flex: 0 0 auto;
}

@media (min-width: 640px) {
  .ka-vote-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
  }

  .ka-vote.ka-reactions {
    width: auto;
    align-items: flex-end;
  }

  .ka-vote-list {
    gap: 2px;
  }
}

.ka-pool__names-wrap {
  margin-top: 4px;
}

.ka-pool__names-wrap > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-sec);
  user-select: none;
}

.ka-pool__names-wrap[open] > summary {
  margin-bottom: 8px;
  color: var(--ka-ink);
}

/* ----- Штаб + заявки ----- */

.ka-boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 760px) {
  .ka-boards {
    grid-template-columns: 1fr;
  }
}

.ka-board.is-mine {
  border-color: var(--ka-ink);
  border-width: 2px;
}

.ka-board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 14px;
}

.ka-board__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ka-ink);
}

.ka-board__meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-staff {
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 12px;
  background: var(--ka-soft);
}

.ka-staff__label,
.ka-wall__label {
  margin: 0 0 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ka-sec);
}

.ka-staff__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
}

.ka-staff__slot {
  text-align: center;
  min-width: 0;
}

.ka-staff__avatar {
  display: block;
  margin: 0 auto 6px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #e7e9e5;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--ka-border);
  text-decoration: none;
}

.ka-staff__slot--captain .ka-staff__avatar {
  width: 84px;
  height: 84px;
}

.ka-staff__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ka-staff__avatar--empty,
.ka-staff__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    -45deg,
    #f7f7f6,
    #f7f7f6 6px,
    #eceeed 6px,
    #eceeed 12px
  );
  border-style: dashed;
  border-width: 2px;
  border-color: #cfd3cf;
  box-shadow: none;
  color: var(--ka-sec);
  font-size: 16px;
  font-weight: 800;
}

.ka-staff__role {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ka-ink);
}

.ka-staff__name {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-ink);
  text-decoration: none;
}

.ka-staff__name:hover {
  text-decoration: underline;
}

.ka-staff__soon {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-wall__empty {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--ka-sec);
}

.ka-wall__faces {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 8px;
  justify-items: center;
}

.ka-wall__faces a,
.ka-wall__fallback,
.ka-wall__more {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #e7e9e5;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--ka-border);
  box-sizing: border-box;
}

.ka-wall__faces img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ka-wall__fallback,
.ka-wall__more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--ka-sec);
}

.ka-wall__more {
  background: var(--ka-soft);
  box-shadow: none;
  list-style: none;
}

.ka-wall__names {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--ka-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.ka-wall__names li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.ka-wall__names a {
  color: var(--ka-ink);
  text-decoration: none;
  font-weight: 600;
}

.ka-wall__names a:hover {
  text-decoration: underline;
}

.ka-wall__names span {
  flex: 0 0 auto;
  color: var(--ka-sec);
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Страница формы сбора /tournament/{id}: постер команды */
.ka-show-poster {
  margin: 0 0 16px;
  padding: 14px 16px 12px;
  text-align: center;
}

.ka-show-poster__link {
  display: inline-block;
  max-width: 280px;
  width: 100%;
  line-height: 0;
}

.ka-show-poster__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(21, 24, 26, 0.12);
}

.ka-show-poster__cta {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.ka-show-poster__cta a {
  color: #15181a;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .ka-show-poster__link {
    max-width: 220px;
  }
}
