.cm-catalog,
.cmc-dialog {
  color: #edf1f6;
  font-family: Inter, Arial, sans-serif;
}
.cm-catalog *,
.cmc-dialog * {
  box-sizing: border-box;
}
.cm-catalog button,
.cmc-dialog button {
  cursor: pointer;
}
.cmc-hero {
  min-height: 315px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 44px 48px;
  border: 1px solid #5a493b;
  border-radius: 14px;
  background:
    linear-gradient(90deg, #10151cf7 0%, #10151cdd 42%, #10151c40 100%),
    url("/static/images/clan-wars/hero-v1.webp") center 45% / cover;
}
.cmc-hero-copy {
  position: relative;
  z-index: 1;
}
.cmc-eyebrow,
.cmc-step {
  font-size: 10px;
  letter-spacing: 0.17em;
  font-weight: 800;
  color: #eda56b;
}
.cmc-eyebrow i,
.cmc-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e9a469;
  margin-right: 7px;
}
.cmc-hero h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  margin: 18px 0 14px;
  font-weight: 800;
}
.cmc-hero h1 em {
  font-style: normal;
  color: #f2ac72;
}
.cmc-hero p,
.cmc-sub {
  color: #a5afbd;
  line-height: 1.55;
  font-size: 14px;
  margin: 0 0 25px;
}
.cmc-hero .cm-btn {
  padding: 13px 19px;
}
.cmc-hero .cm-btn span {
  margin-left: 24px;
}
.cmc-hero-mark {
  position: absolute;
  right: 28px;
  bottom: 22px;
  color: #fff7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.cmc-hero-mark span {
  font-weight: 500;
  font-size: 9px;
  color: #fff8;
}
.cmc-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #303945;
  margin-top: 30px;
  overflow: auto;
}
.cmc-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #96a1b0;
  padding: 0 1px 16px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
}
.cmc-tabs button[aria-selected="true"] {
  color: #f2ad75;
  border-color: #f2ad75;
}
.cmc-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 28px 0 17px;
}
.cmc-heading h2,
.cmc-dialog h2 {
  font-size: 25px;
  letter-spacing: -0.025em;
  margin: 7px 0 0;
  color: #f4f6f9;
}
.cmc-count {
  color: #84909f;
  font-size: 12px;
}
.cmc-filters {
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) repeat(4, minmax(120px, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}
.cmc-filters select,
.cmc-filters input,
.cmc-dialog input,
.cmc-dialog select {
  width: 100%;
  min-width: 0;
  background: #151c25;
  border: 1px solid #34404d;
  color: #e2e7ee;
  border-radius: 7px;
  padding: 11px 12px;
  font: inherit;
  font-size: 12px;
  outline: none;
}
.cmc-filters select:focus,
.cmc-filters input:focus,
.cmc-dialog input:focus,
.cmc-dialog select:focus {
  border-color: #d99b69;
}
.cmc-search {
  position: relative;
}
.cmc-search span {
  position: absolute;
  left: 13px;
  top: 7px;
  color: #8793a3;
  font-size: 22px;
}
.cmc-search input {
  padding-left: 38px;
}
.cmc-list {
  display: grid;
  gap: 9px;
}
.cmc-match {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  text-align: left;
  border: 1px solid #303b48;
  border-radius: 10px;
  background: #171e27;
  color: #edf1f6;
  overflow: hidden;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.cmc-match:hover {
  border-color: #b8825c;
  transform: translateY(-1px);
}
.cmc-match-img {
  width: 190px;
  align-self: stretch;
  min-height: 100px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
  padding: 14px;
  font-weight: 700;
  font-size: 12px;
  flex: none;
}
.cmc-match-main {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
}
.cmc-match-title {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cmc-match-title strong {
  font-size: 14px;
}
.cmc-match-title small {
  display: block;
  color: #82909f;
  font-size: 10px;
  font-weight: 400;
  margin-top: 4px;
}
.cmc-status {
  font-size: 10px;
  color: #e5ae7d;
  background: #3d3028;
  border: 1px solid #644b39;
  border-radius: 20px;
  padding: 5px 8px;
  white-space: nowrap;
}
.cmc-status i {
  width: 6px;
  height: 6px;
}
.cmc-status.is-live {
  color: #89d9aa;
  background: #203b30;
  border-color: #315d46;
}
.cmc-status.is-live i {
  background: #78d39d;
}
.cmc-match-meta,
.cmc-host,
.cmc-match-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.cmc-match-meta {
  margin-top: 9px;
  color: #a8b5c5;
  font-size: 12px;
}
.cmc-host {
  min-width: 0;
  max-width: 100%;
  gap: 6px;
  flex-wrap: nowrap;
}
.cmc-host-label {
  color: #9faebc;
}
.cmc-match-facts {
  gap: 6px;
}
.cmc-match-facts > span {
  padding: 2px 7px;
  border-radius: 5px;
  color: #b9c6d4;
  background: #242e39;
  font-size: 11px;
  line-height: 1.4;
}
.cmc-match-players {
  text-align: right;
  padding: 0 18px;
  white-space: nowrap;
}
.cmc-match-players strong {
  display: block;
  font-size: 17px;
}
.cmc-match-players small,
.cmc-match-players span {
  color: #8593a2;
  font-size: 11px;
  font-weight: 400;
}
.cmc-match-players span {
  display: block;
  margin-top: 4px;
}
.cmc-arrow {
  color: #dba477;
  padding: 0 22px;
  font-size: 19px;
}
.cmc-empty {
  text-align: center;
  border: 1px dashed #394552;
  border-radius: 10px;
  padding: 48px 20px;
  color: #a1adbb;
}
.cmc-empty > span {
  display: block;
  color: #e4a16e;
  font-size: 36px;
}
.cmc-empty strong {
  display: block;
  color: #eef1f4;
  font-size: 16px;
  margin-top: 8px;
}
.cmc-empty p {
  font-size: 13px;
}
.cmc-dialog {
  padding: 8px;
  max-width: 850px;
}
.cmc-dialog h2 {
  font-size: 27px;
  margin: 10px 0;
}
.cmc-dialog .cmc-sub {
  margin-bottom: 24px;
}
.cmc-format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cmc-format {
  position: relative;
  min-height: 175px;
  text-align: left;
  padding: 16px;
  border: 1px solid #36424f;
  background: linear-gradient(145deg, #222d38, #171e27);
  border-radius: 10px;
  color: #eaf0f5;
}
.cmc-format:hover,
.cmc-format.selected,
.cmc-access button:hover,
.cmc-access button.selected {
  border-color: #e5a16d;
  background: linear-gradient(145deg, #3b302b, #1c222a);
}
.cmc-format-num {
  display: block;
  color: #d69b6d;
  font-size: 10px;
  letter-spacing: 0.12em;
  margin-bottom: 23px;
}
.cmc-format strong {
  font-size: 26px;
  display: block;
  color: #f1b37e;
  letter-spacing: -0.04em;
}
.cmc-format b {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}
.cmc-format small {
  display: block;
  color: #9da9b7;
  font-size: 11px;
  margin-top: 5px;
  line-height: 1.4;
}
.cmc-format-arrow {
  position: absolute;
  right: 15px;
  top: 14px;
  color: #ab8a71;
}
.cmc-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #303a45;
  margin-top: 26px;
  padding-top: 20px;
}
.cmc-dialog-footer > span {
  color: #8793a2;
  font-size: 11px;
}
.cmc-access {
  display: grid;
  gap: 9px;
}
.cmc-access button {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  color: #eef2f6;
  border: 1px solid #34404c;
  background: #19212a;
  border-radius: 9px;
  padding: 15px;
}
.cmc-access button > span {
  font-size: 21px;
  color: #e5aa7b;
  width: 27px;
  text-align: center;
}
.cmc-access button div {
  flex: 1;
}
.cmc-access strong,
.cmc-access small {
  display: block;
}
.cmc-access strong {
  font-size: 13px;
}
.cmc-access small {
  color: #98a5b4;
  font-size: 11px;
  margin-top: 5px;
}
.cmc-access button > i {
  width: 16px;
  height: 16px;
  border: 1px solid #687583;
  border-radius: 50%;
}
.cmc-access .selected > i {
  border: 5px solid #efa96f;
}
.cmc-dialog > .cmc-field {
  margin-top: 16px;
}
.cmc-settings section {
  border-top: 1px solid #303a45;
  padding-top: 22px;
  margin-top: 24px;
}
.cmc-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 10px;
}
.cmc-section-title div {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cmc-section-title div > span {
  font-size: 10px;
  color: #eda56b;
}
.cmc-section-title h3 {
  font-size: 15px;
  margin: 0;
  color: #eef2f6;
}
.cmc-section-title small {
  font-size: 11px;
  color: #8f9cab;
}
.cmc-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.cmc-field,
.cmc-template label {
  display: grid;
  gap: 7px;
  color: #aeb9c6;
  font-size: 11px;
  font-weight: 600;
}
.cmc-template {
  display: flex;
  align-items: end;
  gap: 10px;
  background: #202832;
  padding: 14px;
  border-radius: 8px;
}
.cmc-template label {
  flex: 1;
}
.cmc-map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 15px;
}
.cmc-map {
  height: 82px;
  position: relative;
  display: flex;
  align-items: end;
  text-align: left;
  padding: 10px;
  border: 1px solid #3b4753;
  border-radius: 7px;
  background-position: center;
  background-size: cover;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
}
.cmc-map.selected {
  border: 2px solid #efa96f;
}
.cmc-map b {
  display: none;
  position: absolute;
  right: 7px;
  top: 7px;
  color: #1a1b1d;
  background: #efa96f;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  text-align: center;
  line-height: 19px;
}
.cmc-map.selected b {
  display: block;
}
.cmc-mods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cmc-mods label {
  cursor: pointer;
}
.cmc-mods input {
  position: absolute;
  opacity: 0;
  width: 1px;
}
.cmc-mods span {
  display: block;
  border: 1px solid #394552;
  border-radius: 6px;
  padding: 9px 12px;
  color: #aeb9c6;
  font-size: 11px;
}
.cmc-mods input:checked + span {
  border-color: #dd9e6c;
  background: #49362b;
  color: #ffd0a7;
}
.cmc-mods input:focus-visible + span {
  outline: 2px solid #fff;
}
@media (max-width: 900px) {
  .cmc-filters {
    grid-template-columns: repeat(4, 1fr);
  }
  .cmc-search {
    grid-column: 1/-1;
  }
  .cmc-match-img {
    width: 145px;
  }
  .cmc-hero {
    min-height: 280px;
  }
}
@media (max-width: 600px) {
  .cmc-hero {
    padding: 30px 23px;
    min-height: 260px;
    background-position:
      center,
      65% center;
  }
  .cmc-hero h1 {
    font-size: 37px;
  }
  .cmc-hero-mark {
    display: none;
  }
  .cmc-tabs {
    gap: 22px;
  }
  .cmc-filters {
    grid-template-columns: repeat(2, 1fr);
  }
  .cmc-match {
    position: relative;
    flex-wrap: wrap;
  }
  .cmc-match-img {
    width: 100%;
    height: 90px;
    min-height: 0;
    background-image: linear-gradient(0deg, #171e27, transparent), var(--map);
  }
  .cmc-match-main {
    padding: 12px;
  }
  .cmc-match-players {
    padding: 0 12px;
  }
  .cmc-arrow {
    padding: 0 13px;
  }
  .cmc-format-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cmc-format {
    min-height: 145px;
  }
  .cmc-format-num {
    margin-bottom: 12px;
  }
  .cmc-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cmc-map-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cmc-dialog-footer {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .cmc-dialog-footer > div {
    display: flex;
    gap: 6px;
  }
  .cmc-template {
    align-items: stretch;
    flex-direction: column;
  }
  .cmc-section-title small {
    display: none;
  }
}
.cmc-extra-filters {
  display: contents;
}
.cmc-filter-toggle {
  display: none;
}
.cmc-format {
  background-position: center;
  background-size: cover;
}
.cmc-format.selected {
  outline: 2px solid #e5a16d;
  outline-offset: -2px;
}
@media (max-width: 600px) {
  .cmc-filters {
    grid-template-columns: 1fr auto;
  }
  .cmc-search {
    grid-column: auto;
  }
  .cmc-filter-toggle {
    display: block;
    border: 1px solid #34404d;
    border-radius: 7px;
    background: #151c25;
    color: #e2e7ee;
    padding: 0 12px;
  }
  .cmc-extra-filters {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .cmc-extra-filters.open {
    display: grid;
  }
}
.cmc-heading {
  margin: 16px 0 10px;
  justify-content: flex-end;
}
.cmc-size {
  color: #e9ab78;
  margin-left: 8px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .cmc-hero {
    min-height: 220px;
    padding: 24px 20px;
  }
  .cmc-hero h1 {
    font-size: 32px;
    margin: 8px 0 10px;
  }
  .cmc-hero p {
    margin-bottom: 16px;
  }
  .cmc-match {
    flex-wrap: nowrap;
  }
  .cmc-match-img {
    width: 84px;
    height: auto;
    min-height: 94px;
  }
  .cmc-match-main {
    padding: 10px;
  }
  .cmc-match-title strong {
    font-size: 12px;
  }
  .cmc-match-meta {
    margin-top: 7px;
    font-size: 10px;
    gap: 4px;
  }
  .cmc-match-facts {
    width: 100%;
  }
  .cmc-match-players {
    padding: 0 6px;
  }
  .cmc-match-players strong {
    font-size: 14px;
  }
  .cmc-arrow {
    padding: 0 10px;
  }
}
.cmc-settings-tabs {
  position: sticky;
  top: 68px;
  z-index: 3;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 0 -8px;
  padding: 8px;
  background: #171e28;
  border-bottom: 1px solid #34404d;
}
.cmc-settings-tabs button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  background: transparent;
  color: #aeb9c6;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}
.cmc-settings-tabs button[aria-pressed="true"] {
  background: #49362b;
  color: #ffd0a7;
}
.cmc-settings [data-settings-panel][hidden] {
  display: none;
}
.cmc-settings [data-settings-panel="templates"] {
  padding-top: 24px;
}
.cmc-settings [data-settings-panel="templates"] h3 {
  font-size: 16px;
}
.cmc-settings section.cmc-template-group {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}
.cmc-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cmc-settings .cmc-preset {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: left;
  padding: 0;
  min-height: 120px;
  border-radius: 11px;
  border: 1px solid #42505d;
  color: #fff;
  background: #202934;
}
.cmc-preset img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cmc-preset::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, #0b111bf7 4%, #0b111bcc 38%, #0b111b16 92%);
}
.cmc-settings .cmc-preset:hover,
.cmc-settings .cmc-preset:focus-visible {
  border-color: #f5bf93;
}
.cmc-settings .cmc-preset[aria-pressed="true"] {
  border-color: #ffa954;
  box-shadow: inset 0 0 0 1px #ffa954;
}
.cmc-preset-format,
.cmc-preset-tick {
  position: absolute;
  top: 9px;
  border-radius: 5px;
  font-size: 12px;
}
.cmc-preset-format {
  left: 11px;
  background: #111a25de;
  padding: 2px 7px;
  font-weight: 700;
}
.cmc-preset-tick {
  right: 9px;
  display: none;
  background: #ffab67;
  color: #111820;
  padding: 1px 5px;
}
.cmc-preset[aria-pressed="true"] .cmc-preset-tick {
  display: block;
}
.cmc-preset-copy {
  display: grid;
  gap: 3px;
  padding: 45px 12px 10px;
}
.cmc-preset-copy strong {
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.cmc-preset-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 8px;
  font-size: 12px;
  color: #dfebf2;
}
.cmc-preset-uses {
  white-space: nowrap;
}
.cmc-preset-uses i {
  color: #ffbc82;
}
@media (max-width: 520px) {
  .cmc-preset-copy strong {
    font-size: 15px;
  }
  .cmc-preset-copy {
    padding: 42px 8px 8px;
  }
  .cmc-preset-foot {
    align-items: start;
    flex-direction: column;
  }
  .cmc-template-grid {
    gap: 7px;
  }
}
.cmc-settings .cmc-dialog-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #171e28;
  padding-bottom: 12px;
}
@media (max-width: 600px) {
  .cmc-settings-tabs {
    top: 69px;
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 1px;
    padding-inline: 0;
  }
  .cmc-settings-tabs button {
    min-height: 40px;
    padding: 7px 3px;
    font-size: 11px;
  }
  .cmc-settings .cmc-dialog-footer {
    flex-wrap: nowrap;
    gap: 5px;
  }
  .cmc-settings .cmc-dialog-footer .cm-btn {
    padding-inline: 9px;
  }
}
.cmc-search {
  display: flex;
  align-items: center;
}
.cmc-search > .bi-search {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #8793a3;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}
.cmc-filters select,
.cmc-dialog select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%239da9b7' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.cmc-format,
.cmc-format:hover,
.cmc-format.selected,
.cmc-format:focus {
  padding: 0;
  overflow: hidden;
  background: #1a222c;
}
.cmc-format-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0d131b;
}
.cmc-format-copy {
  display: block;
  padding: 12px 14px 15px;
}
.cmc-format strong {
  font-size: 22px;
}
.cmc-format b {
  margin-top: 6px;
}
.cmc-access button > span > i {
  border: 0;
  width: auto;
  height: auto;
  border-radius: 0;
}
.cmc-mods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cmc-mods label {
  min-width: 0;
}
.cmc-mods label > span {
  height: 100%;
  padding: 14px;
}
.cmc-mods strong,
.cmc-mods small {
  display: block;
}
.cmc-mods strong {
  font-size: 13px;
  color: #f1f4f7;
}
.cmc-mods small {
  font-size: 12px;
  line-height: 1.45;
  color: #b6c1cd;
  margin-top: 6px;
}
@media (max-width: 600px) {
  .cmc-format {
    min-height: 0;
  }
  .cmc-format-copy {
    padding: 10px;
  }
  .cmc-format strong {
    font-size: 19px;
  }
  .cmc-mods {
    grid-template-columns: 1fr;
  }
}
.cmc-veto-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 18px;
  color: #f1c09a;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.cmc-veto-link:hover {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .cmc-veto-link {
    display: flex;
    width: fit-content;
    margin: 14px 0 0;
  }
}
