/* Canonical site styles. Base rules, then responsive/accessibility conditions. */
@font-face{font-family:MKRussian;src:url("../fonts/mk-russian.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:MKGaraline;src:url("../fonts/mk-garaline.otf") format("opentype");font-weight:400;font-style:normal;font-display:swap}
@keyframes catalog-orbit{to{transform:rotate(360deg)}}

/* Base */
:root {
  color-scheme: dark;
  --bg: #101619;
  --panel: #192126;
  --text: #edeae3;
  --gold: #c4a76a;
  --brand-logo-size: 54px;
  --control-text: #e7e1d3;
  --control-muted: #aaa493;
  --control-gold: #d4b878;
  --control-line: #706b58;
  --control-fill: #090b0b;
  --line: #595747;
  --muted: #aaa99e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,.4)) center / cover no-repeat fixed,#000 url("/img/backgrounds/main-menu.png") center / cover no-repeat fixed;
  font-family: Arial,sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
input {
  font: inherit;
}
button:focus-visible {
  outline: 2px solid #e4c987;
  outline-offset: 3px;
}
input:focus-visible {
  outline: 2px solid #e4c987;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: .4;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.site-header {
  margin: 0 64px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  letter-spacing: 2px;
}
.brand img {
  object-fit: contain;
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
}
.brand span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
  letter-spacing: 2px;
}
.header-caption {
  font-size: 14px;
  color: var(--muted);
}
main {
  flex: 1;
  padding: 28px 64px 40px;
}
.team-section {
  max-width: 100%;
  width: 100%;
}
.section-heading {
  display: flex;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
h1 {
  font-size: 30px;
  font-weight: 400;
  margin: 0;
}
h2 {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
}
#team-count {
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-color: var(--control-line);
  border-radius: 0;
  color: var(--control-text);
  background: #080b0bd9;
}
.card-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.fighter-slot {
  width: 150px;
  position: relative;
  isolation: isolate;
}
.card-button {
  display: block;
  width: 150px;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: inherit;
  position: relative;
}
.fighter-card {
  width: 150px;
  aspect-ratio: 150/232;
  position: relative;
  isolation: isolate;
}
.empty-fighter {
  width: 150px;
  aspect-ratio: 150/232;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 15px;
}
.fighter-slot.active {
  outline-offset: 5px;
  outline: none;
  border-radius: 0;
}
.portrait-clip {
  position: absolute;
  inset: 4.5% 6%;
  overflow: hidden;
  background: #080b0d;
  border-radius: 8%;
}
.portrait-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.fighter-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}
.portrait-shade {
  border-radius: 8%;
  position: absolute;
  inset: 4.5% 6%;
  background: linear-gradient(transparent 48%,#04070899 69%,#040608f5);
  pointer-events: none;
}
.fighter-caption {
  position: absolute;
  bottom: 9%;
  left: 11%;
  right: 11%;
  text-align: center;
  z-index: 3;
  font-family: Georgia,serif;
}
.fighter-variation {
  font-size: 13px;
  margin-bottom: 3px;
}
.fighter-name {
  font-size: 16px;
  line-height: 1.05;
}
.fighter-level {
  font-size: 20px;
  margin-top: 3px;
}
.base-stats {
  display: flex;
  justify-content: space-between;
  color: #b7b8b2;
  font-size: 11px;
  margin-top: 2px;
}
.empty-fighter .plus {
  font-size: 36px;
  font-weight: 400;
  width: 52px;
  height: 52px;
  border: 1px solid #806f4d;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
}
.empty-fighter .label {
  position: relative;
  font-size: 13px;
}
.fusion-badge {
  position: absolute;
  z-index: 5;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 19px;
  top: 1px;
  background: none;
  mask: none;
  clip-path: none;
  font: 12px/1 MKGaraline,serif;
  font-synthesis: none;
  color: #171510;
}
.ascension-label {
  position: absolute;
  left: 13px;
  top: 50px;
  z-index: 5;
  font: 11px Georgia,serif;
  background: #16110edb;
  border: 1px solid #a18345;
  border-radius: 3px;
  padding: 3px;
  color: #e2bb6e;
}
.gear-indicators {
  position: absolute;
  right: 8px;
  top: 28px;
  display: grid;
  grid-template-rows: repeat(4,24px);
  gap: 2px;
  z-index: 4;
}
.gear-indicator {
  width: 20px;
  height: 24px;
  display: grid;
  place-items: center;
  background: #04070aaa;
  border: 1px solid #6a7177;
}
.gear-indicator img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  opacity: .25;
}
.gear-indicator.filled img {
  opacity: 1;
}
.gear-indicator.filled {
  border-color: #e1d5b1;
}
#equipment-section {
  margin-top: 30px;
}
.equipment-heading {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 17px;
}
.equipment-heading span {
  font-size: 12px;
  color: var(--control-muted);
}
.equipment-card {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  width: 150px;
  aspect-ratio: 150/232;
}
.empty-equipment {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  width: 150px;
  aspect-ratio: 150/232;
}
.equipment-button {
  width: 150px;
}
.equipment-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 3;
}
.empty-equipment.universal {
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}
.empty-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}
.empty-icons img {
  width: 62px;
  height: 69px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .28;
}
.universal .empty-icons img {
  width: 43px;
  height: 48px;
}
.equipment-art {
  position: absolute;
  inset: 4% 5% 9%;
  overflow: hidden;
}
.equipment-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
}
.equipment-shade {
  position: absolute;
  inset: 5% 5% 13%;
  background: linear-gradient(#0003,transparent 35%);
}
.equipment-title {
  position: absolute;
  z-index: 4;
  text-align: center;
  font: 16px Georgia,serif;
  top: 20px;
  left: 9%;
  right: 9%;
  font-size: 16px;
  line-height: 1.04;
}
.equipment-title small {
  display: block;
  font-size: 10px;
  color: var(--rarity);
  margin-bottom: 3px;
}
.equipment-type {
  position: absolute;
  z-index: 4;
  text-align: center;
  padding: 0;
  place-items: center;
  clip-path: none;
  font: 15px/1 MKRussian,serif;
  font-weight: 400;
  font-synthesis: none;
  color: #10151a;
  inset: 0;
  height: auto;
  display: block;
  background: transparent;
  transform: none;
}
.equipment-type-icon {
  position: absolute;
  z-index: 4;
  bottom: 14%;
  object-fit: contain;
  width: 32px;
  height: 34px;
  left: calc(50% - 16px);
}
.equipment-card .fusion-badge {
  --badge: var(--rarity);
  width: 32px;
  height: 20px;
  top: 0;
}
.equipment-card::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--rarity);
  border-radius: 8px;
  opacity: .6;
  pointer-events: none;
  display: none;
}
.site-footer {
  margin: 0 64px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #74848d;
  flex-shrink: 0;
  gap: 12px 24px;
  flex-wrap: wrap;
  align-items: center;
  line-height: 1.6;
  letter-spacing: 0;
  font-size: 12px;
}
#picker {
  padding: 0;
  width: min(1190px,calc(100vw - 40px));
  max-width: none;
  height: min(780px,calc(100vh - 40px));
  max-height: none;
  background: transparent;
  color: var(--text);
  border: 20px solid transparent;
  border-image: url("../../img/passives/Frame_Outline_Double_Filled.png") 45 fill / 20px / 0 stretch;
  border-radius: 0;
  overflow: hidden;
}
#picker[open] {
  display: flex;
  flex-direction: column;
}
#picker::backdrop {
  background: #03080bcf;
}
.picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px 0;
}
.close-button {
  width: 34px;
  height: 34px;
  border-radius: 0;
  color: var(--control-text);
  font-family: MKRussian,Georgia,serif;
  transition: filter .15s,color .15s;
  box-shadow: none;
  min-width: 36px;
  min-height: 36px;
  background: #0b0e0e;
  border: 1px solid var(--control-line);
  font-size: 26px;
  line-height: 1;
}
.picker-content {
  display: flex;
  flex: 1;
  min-height: 0;
}
#filters {
  width: 240px;
  flex-shrink: 0;
  overflow: auto;
  border-right: 1px solid var(--line);
  padding: 20px 15px 20px 0;
}
.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 8px;
}
.filter-heading h3 {
  margin: 0;
  font-family: MKRussian,Georgia,serif;
  font-weight: 400;
  font-size: 21px;
}
.reset-filters {
  border-radius: 0;
  color: var(--control-text);
  font-family: MKRussian,Georgia,serif;
  transition: filter .15s,color .15s;
  box-shadow: none;
  font-size: 15px;
  background: none;
  border: 8px solid transparent;
  border-image: url("/img/controls/CommonButtonLowBacker.png") 24 fill / 8px / 0 stretch;
  padding: 2px 10px;
  min-height: 36px;
}
fieldset {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 18px;
  margin: 0 0 20px;
}
#filters fieldset:last-child {
  border: 0 none;
  padding: 0;
  margin: 0;
}
legend {
  font-size: 13px;
  margin-bottom: 12px;
}
#filters label {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: #d2d0c5;
  min-height: 34px;
  cursor: pointer;
}
#filters label span {
  flex: 1;
}
#filters label small {
  color: #899aa3;
  font-size: 11px;
}
#filters label:has(input:disabled) {
  opacity: .35;
  cursor: default;
}
#filters input {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
  margin: 0;
}
.catalog {
  padding: 23px;
  overflow: auto;
  flex: 1;
  min-width: 0;
}
.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  font-family: MKRussian,Georgia,serif;
  font-weight: 400;
  font-size: 22px;
}
.catalog-heading small {
  font-size: 11px;
  color: var(--muted);
}
#catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,150px);
  gap: 22px 20px;
  align-content: start;
}
.catalog-choice {
  border: 0;
  background: transparent;
  padding: 0;
  width: 150px;
  color: var(--text);
  text-align: left;
}
.catalog-choice .equipment-card {
  margin: auto;
}
.catalog-meta {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin-top: 9px;
}
.picker-footer {
  border-top: 1px solid var(--line);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.picker-footer button {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid #536068;
  border-radius: 4px;
}
#context-menu {
  position: fixed;
  z-index: 20;
  width: 220px;
  max-width: calc(100vw - 16px);
  border: 1px solid #5e6a6c;
  padding: 6px;
  overflow: hidden;
  background: #090e0e;
  border-color: var(--control-line);
  border-radius: 0;
  box-shadow: 0 12px 35px #000b;
}
#context-menu button:hover {
  background: #c4a76a20;
}
#context-menu .menu-value {
  color: #ccb680;
  font-size: 12px;
}
#context-menu .menu-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 4px 9px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.menu-back {
  padding: 3px 7px;
  border-radius: 0;
  color: var(--control-text);
  font-family: MKRussian,Georgia,serif;
  transition: filter .15s,color .15s;
  box-shadow: none;
  min-width: 36px;
  min-height: 36px;
  background: #0b0e0e;
  border: 1px solid var(--control-line);
  font-size: 26px;
  line-height: 1;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 4px;
  max-height: min(330px,calc(100vh - 110px));
  overflow: auto;
  padding: 2px;
}
.value-grid button {
  height: 35px;
  border: 1px solid #455359;
  font-size: 13px;
  border-radius: 0;
  background: #111614;
  border-color: #5d5b4b;
  color: var(--control-text);
}
.value-grid .no-value {
  grid-column: 1/-1;
  margin-top: 4px;
}
.context-label {
  font-size: 15px;
  color: var(--muted);
  padding: 7px 10px 14px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3px;
  font-family: MKRussian,Georgia,serif;
  font-weight: 400;
}
.empty-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.equipment-card .equipment-art {
  inset: 0;
  border-radius: 0;
  clip-path: path("M20 7H130Q133 18 143 20V212Q132 215 130 225H20Q18 215 7 212V20Q18 18 20 7Z");
  background: transparent;
}
.fusion-badge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.fusion-badge>span {
  position: relative;
  z-index: 1;
  margin-top: -2px;
}
.equipment-type>img {
  position: absolute;
  inset: auto;
  left: 7px;
  top: 197px;
  width: 136px;
  height: 27px;
  object-fit: fill;
}
.equipment-type>span {
  z-index: 1;
  position: absolute;
  left: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  margin: 0;
  top: 202px;
  height: 21px;
}
.equipment-outer-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 2;
}
.fighter-equipment-toggle {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  cursor: pointer;
}
.fighter-equipment-toggle:hover {
  color: var(--gold);
}
.fighter-equipment-toggle[aria-pressed=true] {
  color: var(--gold);
}
.fighter-equipment-toggle:disabled {
  opacity: .3;
  cursor: default;
}
.fighter-equipment-toggle:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}
.catalog-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--control-muted);
}
.catalog-sort[hidden] {
  display: none;
}
.catalog-sort button {
  border-radius: 0;
  color: var(--control-text);
  font-family: MKRussian,Georgia,serif;
  transition: filter .15s,color .15s;
  box-shadow: none;
  font-size: 16px;
  background: none;
  border: 8px solid transparent;
  border-image: url("/img/controls/CommonButtonLowBacker.png") 24 fill / 8px / 0 stretch;
  padding: 2px 10px;
  min-height: 36px;
}
.catalog-sort button[aria-pressed=true] {
  border-color: var(--gold);
  color: var(--control-gold);
  filter: brightness(1.25);
}
.fusion-options {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 2px;
}
.fusion-options label:last-child {
  grid-column: 1/-1;
}
.fusion-options input {
  accent-color: var(--gold);
}
.fighter-card-stats {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 42px;
  grid-template-rows: 24px 20px;
  align-items: center;
  justify-items: center;
  margin-top: 2px;
  color: #ccc9c0;
  font-family: MKGaraline,Georgia,serif;
}
.fighter-card-stats>.fighter-level {
  font: 24px/1 MKGaraline,Georgia,serif;
  margin: 0;
  color: #eee9df;
}
.fighter-attack-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.fighter-health-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.fighter-stat-value {
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
.fighter-class-icons {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
}
.fighter-class-icons img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.fighter-class-icons.multiple {
  display: flex;
  width: 100%;
  height: 20px;
}
.fighter-class-icons.multiple img {
  position: static;
  min-width: 0;
  flex: 1;
  width: 0;
  height: 20px;
}
.catalog-loader {
  display: grid;
  place-items: center;
  min-height: 320px;
  height: 45vh;
  max-height: 480px;
}
.catalog-loader-logo {
  position: relative;
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
}
.catalog-loader-logo>img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.catalog-loader-orbit {
  position: absolute;
  inset: 0;
  animation: catalog-orbit 1.2s linear infinite;
  pointer-events: none;
}
.catalog-loader-orbit i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(5px - var(--trail-index)*.34px);
  height: calc(5px - var(--trail-index)*.34px);
  border-radius: 50%;
  background: #fff;
  opacity: calc(1 - var(--trail-index)*.077);
  transform: translate(-50%,-50%) rotate(calc(var(--trail-angle,0deg) + var(--trail-index)*-3.65deg)) translateX(calc(var(--brand-logo-size)/2 - 1px));
  box-shadow: 0 0 4px #ffffffb3;
}
.catalog-loader-orbit i.orbit-head {
  box-shadow: 0 0 4px #fff,0 0 9px #ffffffa6;
}
.passive-tooltip {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(560px,calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  overflow: hidden;
  box-sizing: border-box;
  padding: 7px 17px 24px;
  border: 20px solid transparent;
  border-image: url("../../img/passives/Frame_Outline_Double_Filled.png") 45 fill / 20px / 0 stretch;
  background: transparent;
  color: #e3e0d4;
  pointer-events: none;
  font: 20px/1.16 MKRussian,Georgia,serif;
  box-shadow: none;
}
.passive-tooltip::backdrop {
  background: transparent;
  pointer-events: none;
}
.passive-tooltip-heading {
  font-size: 17px;
  color: #9e9c8c;
  border-bottom: 1px solid #7e81795c;
  padding-bottom: 15px;
  margin-bottom: 12px;
}
.passive-tooltip-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}
.passive-tooltip-icon {
  flex: 0 0 74px;
  height: 74px;
  background: url("../../img/passives/AbilityButtonBacker.png?v=2") center/contain no-repeat;
  display: grid;
  place-items: center;
}
.passive-tooltip-icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.passive-tooltip-summary {
  flex: 1;
  min-width: 0;
}
.passive-tooltip-title {
  font-size: 27px;
  line-height: 1.05;
  margin-bottom: 6px;
}
.passive-tooltip-level {
  font: 26px/1 MKGaraline,Georgia,serif;
  white-space: nowrap;
}
.passive-tooltip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 15px;
  margin-bottom: 8px;
}
.passive-tooltip-tags span {
  background: #34312ac9;
  border-radius: 5px;
  padding: 1px 6px;
}
.passive-tooltip-elements {
  font-size: 16px;
}
.passive-tooltip-elements span {
  white-space: nowrap;
}
.passive-tooltip-elements img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  vertical-align: middle;
  margin: 0 3px;
}
.passive-tooltip-fields {
  margin: 18px 0 25px;
}
.passive-tooltip-fields>div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 5px 0;
}
.passive-tooltip-fields dd {
  margin: 0;
  white-space: nowrap;
}
.passive-tooltip-description em {
  font-style: normal;
  color: #e6c352;
}
.passive-tooltip:popover-open {
  display: flex;
  flex-direction: column;
}
.passive-tooltip>.passive-tooltip-heading {
  flex-shrink: 0;
}
.passive-tooltip-body {
  min-height: 0;
  font-size: 19px;
  margin-right: -17px;
  padding-right: 17px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #85877b transparent;
}
.passive-tooltip-synergy {
  margin-top: 26px;
  white-space: pre-line;
}
.passive-tooltip-synergy .passive-tooltip-heading {
  font-size: 16px;
}
.passive-tooltip-description {
  white-space: pre-line;
}
.passive-text-gold {
  color: #e6c352;
}
.language-picker {
  position: relative;
  z-index: 30;
  font-size: 14px;
  flex-shrink: 0;
}
.language-picker summary {
  display: flex;
  align-items: center;
  gap: 9px;
  list-style: none;
  cursor: pointer;
  height: 44px;
  border-radius: 0;
  color: var(--control-text);
  font: 18px MKRussian,Georgia,serif;
  background: none;
  border: 8px solid transparent;
  border-image: url("/img/controls/CommonButtonLowBacker.png") 24 fill / 8px / 0 stretch;
  padding: 0 10px;
}
.language-picker summary::-webkit-details-marker {
  display: none;
}
.language-picker summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.language-picker img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #ffffff20;
}
.language-chevron {
  display: block;
  flex: none;
  align-self: center;
  width: 14px;
  height: 14px;
  color: #c4bfad;
}
.language-picker[open] .language-chevron {
  transform: rotate(180deg);
}
.language-options {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  width: 162px;
  border: 1px solid var(--line);
  background: #090c0c;
  border-color: var(--control-line);
  border-radius: 0;
  padding: 6px;
  box-shadow: 0 8px 25px #000b;
}
.language-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 0;
  color: var(--control-text);
  min-height: 42px;
}
.language-options button:hover {
  background: #c4a76a20;
}
.language-check {
  margin-left: auto;
  color: var(--gold);
  visibility: hidden;
}
.language-options button[aria-pressed=true] .language-check {
  visibility: visible;
}
.equipment-tooltip-body p {
  margin: 17px 0 0;
  white-space: pre-line;
}
.equipment-tooltip-owners {
  color: #ADF0A2;
}
.passive-text-purple {
  color: #cf65eb;
}
.equipment-content {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.team-content {
  align-items: flex-start;
  display: grid;
  grid-template-columns: 654px repeat(2,minmax(400px,570px));
  gap: 24px;
}
.team-slots {
  flex: 0 0 654px;
  min-width: 0;
}
.equipment-content>.card-row {
  flex: 0 0 auto;
}
.fighter-details {
  box-sizing: border-box;
  flex: 0 1 570px;
  min-width: 400px;
  width: 570px;
  padding: 4px 5px 12px;
  border: 20px solid transparent;
  border-image: url("../../img/passives/Frame_Outline_Double_Filled.png") 45 fill /20px/0 stretch;
  color: #e3e0d4;
  font: 20px/1.2 MKRussian,Georgia,serif;
}
.details-caption {
  font: inherit;
  font-size: 17px;
  font-weight: normal;
  text-transform: uppercase;
  color: #aaa797;
  border-bottom: 1px solid #7b7b6c;
  margin: 0 0 8px;
  padding: 0 0 13px;
}
.detail-stat {
  margin-bottom: 27px;
}
.detail-stat-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  background: linear-gradient(90deg,#77756542,#77756516);
  padding: 7px 4px;
  margin-bottom: 9px;
}
.detail-stat-heading>img {
  width: 49px;
  height: 49px;
  object-fit: contain;
  flex: none;
}
.detail-stat-heading h3 {
  font: inherit;
  font-size: 28px;
  text-transform: uppercase;
  margin: 0;
  font-weight: normal;
}
.detail-stat-heading p {
  font-size: 15px;
  line-height: 1.15;
  color: #999383;
  margin: 0;
}
.fighter-details dl {
  margin: 0;
}
.detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin: 3px 0;
}
.detail-row dt {
  color: #c9c4b4;
}
.detail-row dd {
  margin: 0;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.detail-total {
  border-top: 1px solid #5b5b4f80;
  margin-top: 9px;
  padding-top: 5px;
  font-size: 27px;
}
.detail-total dt {
  color: #edc146;
}
.detail-total dd {
  color: #edc146;
  white-space: normal;
}
.detail-total small {
  font-size: 20px;
}
.detail-special {
  border-top: 1px solid #5b5b4f80;
  padding-top: 16px;
  margin-top: 25px;
}
.detail-special-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
}
.detail-special-icon {
  position: relative;
  flex: none;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
}
.detail-special-icon:before {
  content: "";
  position: absolute;
  inset: 2px;
  background: linear-gradient(135deg,#6f7275,#22272c 45%,#090c10);
  border: 1px solid #94998f;
  clip-path: polygon(18% 0,82% 0,100% 18%,100% 82%,82% 100%,18% 100%,0 82%,0 18%);
  z-index: 0;
}
.detail-special-icon>img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  position: relative;
}
.detail-special-icon>span {
  position: absolute;
  left: -4px;
  top: -5px;
  background: #b4c9d8;
  color: #172c36;
  border: 1px solid #e5e8e9;
  min-width: 22px;
  text-align: center;
  clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
}
.detail-special-description {
  flex: 1;
  min-width: 0;
}
.detail-special h4 {
  font: inherit;
  font-size: 26px;
  font-weight: normal;
  margin: 0 0 3px;
}
.detail-special p {
  margin: 0;
  font-size: 16px;
  color: #a7a08c;
}
.detail-special .detail-elements {
  color: #d8d3c5;
  margin-top: 2px;
}
.detail-elements img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  vertical-align: middle;
}
.detail-effect {
  color: #e24237;
}
.detail-effect-positive {
  color: #68c988;
}
.detail-effect-neutral {
  color: #edc146;
}
.detail-effect-purple {
  color: #cf65eb;
}
.detail-event-tower {
  --event-color: #cf65eb;
}
.detail-event-klash {
  --event-color: #b8aa59;
}
.detail-event-krypt {
  --event-color: #cd1525;
}
.detail-event dt {
  color: var(--event-color);
}
.detail-event dd {
  color: var(--event-color);
}
.detail-total.detail-event {
  font-size: 22px;
  flex-wrap: wrap;
  row-gap: 4px;
}
.detail-total.detail-event dd {
  margin-left: auto;
}
.detail-upgrade {
  font-size: 24px;
  white-space: nowrap;
  color: #d1cbb7;
}
.event-control {
  margin-left: auto;
  position: relative;
  max-width: 100%;
}
#team-event {
  appearance: none;
  width: 300px;
  max-width: 100%;
  height: 44px;
  padding: 8px 42px 8px 20px;
  border: 0;
  border-radius: 0;
  background: url("/img/controls/CommonButtonLowBacker.png") center/100% 100% no-repeat;
  color: var(--control-text);
  font: 19px MKRussian,Georgia,serif;
  cursor: pointer;
}
#team-event:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
#save-team {
  border-radius: 0;
  color: var(--control-text);
  font-family: MKRussian,Georgia,serif;
  transition: filter .15s,color .15s;
  box-shadow: none;
  position: relative;
  isolation: isolate;
  min-height: 44px;
  min-width: 140px;
  padding: 8px 24px;
  border: 0;
  background: transparent;
  font-size: 21px;
  text-transform: uppercase;
}
#copy-team {
  border-radius: 0;
  color: var(--control-text);
  font-family: MKRussian,Georgia,serif;
  transition: filter .15s,color .15s;
  box-shadow: none;
  position: relative;
  isolation: isolate;
  min-height: 44px;
  min-width: 140px;
  padding: 8px 24px;
  border: 0;
  background: transparent;
  font-size: 21px;
  text-transform: uppercase;
}
#save-team:not(:disabled):hover {
  background: transparent;
  color: #ffe4a5;
  filter: brightness(1.2);
}
#copy-team:hover {
  background: transparent;
  color: #ffe4a5;
  filter: brightness(1.2);
}
#context-menu .menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  padding: 11px 10px;
  text-align: left;
  font-size: 13px;
  border-radius: 0;
  min-height: 40px;
  color: var(--control-text);
}
#context-menu .danger {
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin-top: 4px;
  color: #e5aaaa;
}
#catalog-grid[aria-busy=true] {
  display: block;
}
#share-team {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
#team-link {
  flex: 1;
  min-width: 0;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 4px;
}
#save-status {
  max-width: 700px;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.5;
}
.team-content>.fighter-details {
  flex: 1 1 570px;
  width: 100%;
  max-width: none;
  min-width: 0;
}
.bonus-heading {
  font: inherit;
  font-size: 21px;
  color: #d1cbb7;
  margin: 18px 0 10px;
  border-bottom: 1px solid #5b5b4f80;
  padding-bottom: 6px;
}
.bonus-entry {
  margin: 0 0 18px;
}
.bonus-entry p {
  margin: 0 0 5px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.bonus-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.bonus-value strong {
  font-weight: normal;
  color: #edc146;
  white-space: nowrap;
}
.bonus-sources {
  font-size: 14px;
  line-height: 1.35;
  color: #aaa797;
  margin-top: 5px;
}
.bonus-empty {
  font-size: 17px;
  color: #aaa797;
}
.bonus-event .bonus-heading {
  color: var(--event-color);
}
.bonus-event .bonus-value {
  color: var(--event-color);
}
.bonus-event .bonus-value strong {
  color: var(--event-color);
}
.bonus-event-label {
  color: var(--event-color);
  font-size: 17px;
}
.detail-source {
  font-size: 17px;
}
.detail-source dt {
  overflow-wrap: anywhere;
}
.detail-source dd {
  white-space: normal;
}
#filters .filter-icon {
  width: 24px;
  height: 28px;
  object-fit: contain;
  flex: none;
}
#filters input[type=checkbox] {
  display: grid;
  place-content: center;
  flex: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent center/contain no-repeat;
  appearance: none;
  background-image: url("/img/controls/RadioButton_CheckMark_Inactive.png");
}
.fighter-card .fusion-badge {
  width: 30px;
  height: 16px;
  top: 1px;
}
.fighter-card .fusion-badge img {
  object-fit: contain;
}
.fighter-card .fusion-badge>span {
  margin-top: -1px;
}
.empty-fighter-icon {
  width: 92px;
  height: 115px;
  object-fit: contain;
  opacity: .65;
}
.site-navigation {
  display: flex;
  flex-wrap: wrap;
  margin: 0 64px;
  border-bottom: 1px solid var(--line);
  gap: 32px;
  border-bottom-color: #8a806044;
}
.site-navigation a {
  display: block;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  font-family: MKRussian,Georgia,serif;
  font-weight: 400;
  font-size: 20px;
  color: #d0cbbd;
  padding: 16px 4px 13px;
  transition: color .15s,border-color .15s;
  text-shadow: 0 1px 3px #000;
}
.site-navigation a:hover {
  color: var(--control-gold);
}
.site-navigation a[aria-current=page] {
  color: var(--control-gold);
  border-bottom-color: var(--control-gold);
}
.site-navigation a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.tower-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(230px,1fr));
  gap: 32px 24px;
  align-items: start;
}
.tower-card {
  display: grid;
  position: relative;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
  text-align: center;
}
.tower-picture {
  grid-area: 1/1;
  clip-path: polygon(7% .6%,92% .6%,94% 3%,97% 5.7%,99% 6.8%,99% 90.2%,89% 90.2%,89% 94%,50% 99.6%,11% 94%,11% 90.2%,1% 90.2%,1% 6.8%,3% 5.7%,5% 3%);
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 772/918;
  background: url("/img/towers/frame.png") center/100% 100% no-repeat;
  transition: filter .18s ease;
}
.tower-art {
  position: absolute;
  inset: 4% 5% 5%;
  overflow: hidden;
  clip-path: polygon(6% 0,94% 0,100% 6%,100% 92%,88% 92%,88% 96%,50% 100%,12% 96%,12% 92%,0 92%,0 6%);
  background: #060b09;
}
.tower-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.tower-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%,#0009 65%,#000e 100%);
}
.tower-caption {
  grid-area: 1/1;
  z-index: 1;
  align-self: end;
  justify-self: center;
  width: 78%;
  margin-bottom: 15%;
  text-shadow: 0 2px 4px #000;
  overflow-wrap: anywhere;
}
.tower-name {
  display: block;
  margin-top: 0;
  font-family: MKRussian,MKGaraline,serif;
  font-size: 23px;
  line-height: 1.2;
}
.tower-card:hover .tower-picture {
  filter: brightness(1.15);
}
.tower-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 7px;
  border-radius: 2px;
}
.tower-back {
  display: inline-block;
  color: var(--gold);
  margin-bottom: 24px;
  text-decoration: none;
}
.tower-detail-picture {
  width: 290px;
  max-width: 100%;
  margin-top: 24px;
}
.tower-difficulty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  color: #e53738;
  font-family: MKRussian,MKGaraline,serif;
  font-size: 19px;
}
.tower-difficulty-icon {
  display: inline-block;
  flex: none;
  width: 26px;
  height: 26px;
  background: currentColor;
  mask: url("/img/towers/fatal.png") center/contain no-repeat;
}
.tower-page>.tower-detail-picture {
  margin: 0 auto 48px;
  width: 290px;
}
.tower-page>.tower-back {
  margin-bottom: 12px;
}
.tower-floor {
  margin: 0 0 38px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.tower-floor>h2 {
  margin: 8px 0 18px;
  color: var(--gold);
  font-size: 24px;
}
.tower-floor .team-content {
  width: 100%;
}
.tower-floor .team-slots {
  flex-shrink: 0;
}
.tower-floor .fighter-slot.active .card-button {
  outline-offset: 4px;
  outline: none;
  border-radius: 0;
}
.tower-floor .equipment-button {
  cursor: default;
}
.tower-boss {
  display: block;
  text-align: center;
  color: #e53738;
  margin-top: 7px;
  font-family: MKRussian,serif;
  font-size: 18px;
}
.tower-floor .empty-equipment {
  width: 150px;
  height: 232px;
}
.fighter-slot.active::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  left: -18px;
  top: -18px;
  width: calc(100% + 36px);
  height: 268px;
  background: url("/img/tower-info/selected-gold.png") center/100% 100% no-repeat;
  box-sizing: border-box;
  opacity: .9;
}
.tower-floor-heading {
  max-width: 100%;
  text-align: center;
  margin: 8px 0 26px;
  font-family: Georgia,serif;
  width: 100%;
}
.tower-floor-heading h2 {
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 14px;
  color: var(--text);
  scroll-margin-top: 18px;
}
.tower-modifiers {
  font-size: 19px;
  line-height: 1.6;
  color: #c8c5b9;
}
.tower-modifiers>span {
  display: inline-block;
  color: #eee9dc;
}
.tower-info-trigger {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  width: 23px;
  height: 23px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #171716;
  cursor: help;
  margin-left: 5px;
}
.tower-info-trigger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tower-info-trigger.question {
  border-radius: 50%;
  background: #bdb7ab;
  font: bold 22px Georgia,serif;
}
.tower-info-trigger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
#passive-tooltip.tower-information-tooltip {
  width: 710px;
  max-width: calc(100vw - 16px);
  min-height: 220px;
  max-height: calc(100vh - 16px);
  border: 12px solid transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  color: #cbc7b8;
  border-image: none;
  overflow: visible;
  background: transparent;
  isolation: isolate;
}
.tower-info-heading {
  font: 26px Georgia,serif;
  text-align: center;
  position: relative;
  padding: 0 40px 16px;
  flex-shrink: 0;
  background: url("/img/tower-info/frame-center.png") center bottom/65% 16px no-repeat;
}
.tower-info-body {
  padding: 25px 24px 20px !important;
  margin: 0 !important;
  overflow: auto;
  min-height: 0;
  font: 20px/1.3 Georgia,serif;
}
.tower-info-body h3 {
  font-size: 22px;
  font-weight: 400;
  color: #e4c958;
  margin: 8px 0;
}
.tower-info-body p {
  margin: 0 0 16px;
  white-space: pre-line;
}
#passive-tooltip.tower-rewards-tooltip {
  width: 930px;
}
.reward-currencies {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}
.reward-currency {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e8c64c;
  font-size: 23px;
}
.reward-currency img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.reward-group>p {
  text-align: center;
  font-size: 17px;
}
.reward-group+.reward-group {
  margin-top: 22px;
}
.reward-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.reward-card {
  width: 150px;
  flex: 0 0 150px;
}
.reward-card .fighter-card-stats {
  display: none;
}
.reward-card .fusion-badge {
  display: none;
}
.reward-card .gear-indicators {
  display: none;
}
.reward-card .fighter-caption {
  bottom: 12%;
}
.reward-random-title {
  position: absolute;
  z-index: 3;
  top: 11%;
  width: 100%;
  text-align: center;
  color: #eee;
  font: 18px Georgia,serif;
}
.reward-random-caption {
  position: absolute;
  z-index: 3;
  bottom: 7%;
  left: 10%;
  width: 80%;
  text-align: center;
  font: 14px Georgia,serif;
  background: transparent;
  color: #fff;
  text-shadow: 0 1px 3px #000;
}
.tower-floor:not(.is-expanded) .team-content {
  display: flex;
  justify-content: center;
}
.tower-floor:not(.is-expanded) .team-slots {
  flex: 0 1 486px;
  width: 486px;
  max-width: 100%;
}
.reward-upgrade-icon {
  position: absolute;
  inset: 28% 20%;
  width: 60%;
  height: 40%;
  object-fit: contain;
  z-index: 3;
}
#passive-tooltip.tower-information-tooltip::before {
  content: "";
  position: absolute;
  inset: -12px;
  pointer-events: none;
  border: 12px solid transparent;
  border-image: url("/img/tower-info/frame.png") 32 / 12px / 0 stretch;
  filter: sepia(1) saturate(1.1) brightness(.6);
}
#passive-tooltip.tower-information-tooltip::after {
  content: "";
  position: absolute;
  inset: -11px;
  z-index: -1;
  background: #030504;
  pointer-events: none;
  mask: radial-gradient(circle at top left,transparent 8px,#000 8.5px),radial-gradient(circle at top right,transparent 8px,#000 8.5px),radial-gradient(circle at bottom left,transparent 8px,#000 8.5px),radial-gradient(circle at bottom right,transparent 8px,#000 8.5px);
  mask-composite: intersect;
}
#passive-tooltip.tower-information-tooltip:not(:popover-open) {
  display: none;
}
.fighter-card:hover {
  filter: brightness(1.15);
}
.equipment-card:hover {
  filter: brightness(1.15);
}
.empty-fighter:hover {
  filter: brightness(1.15);
}
.empty-equipment:hover {
  filter: brightness(1.15);
}
.equipment-slot {
  width: 150px;
  flex: 0 0 150px;
  text-align: center;
}
.installed-equipment {
  cursor: default;
}
.equipment-tooltip-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  text-transform: none;
}
.equipment-tooltip-heading>span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.tooltip-fusion {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 25px;
  flex: 0 0 40px;
  color: #171510;
  font: 14px/1 MKGaraline,serif;
}
.tooltip-fusion img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tooltip-fusion>span {
  position: relative;
  margin-top: -2px;
}
.site-footer p {
  margin: 0;
  flex: 1 1 480px;
}
.site-footer a {
  color: var(--gold);
  text-underline-offset: 3px;
}
.about-page a {
  color: var(--gold);
  text-underline-offset: 3px;
}
.about-page {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
}
.about-page article {
  padding: clamp(20px,4vw,40px);
  background: #060b0cde;
  border: 1px solid var(--line);
  line-height: 1.7;
  color: #e3e0d4;
}
.about-page h1 {
  font: clamp(24px,4vw,34px)/1.2 MKRussian,Georgia,serif;
  margin: 0 0 24px;
  color: var(--gold);
}
.about-page p {
  margin: 0 0 20px;
}
.about-page p:last-child {
  margin-bottom: 0;
}
.equipment-score {
  position: absolute;
  z-index: 4;
  bottom: 14%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #e3e0d4;
  font: 20px/1 MKRussian,Georgia,serif;
  pointer-events: none;
}
.equipment-score .equipment-type-icon {
  position: static;
  width: 32px;
  height: 34px;
  object-fit: contain;
}
.section-heading h1 {
  font-family: MKRussian,Georgia,serif;
  font-weight: 400;
  font-size: 30px;
}
.equipment-heading h2 {
  font-family: MKRussian,Georgia,serif;
  font-weight: 400;
  font-size: 23px;
}
.picker-header h2 {
  font-family: MKRussian,Georgia,serif;
  font-weight: 400;
  font-size: 24px;
}
#filters legend {
  font-family: MKRussian,Georgia,serif;
  font-weight: 400;
  font-size: 19px;
  color: var(--control-text);
  margin-bottom: 10px;
}
#save-team::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 10px solid transparent;
  border-image: url("/img/controls/FlatButton_Fill_Full_01.png") 40 fill / 10px / 0 stretch;
  filter: brightness(.045);
}
#copy-team::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 10px solid transparent;
  border-image: url("/img/controls/FlatButton_Fill_Full_01.png") 40 fill / 10px / 0 stretch;
  filter: brightness(.045);
}
#save-team::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 10px solid transparent;
  border-image: url("/img/controls/FlatButton_Frame_Full_01.png") 30 / 10px / 0 stretch;
  filter: sepia(.6) brightness(.72);
}
#copy-team::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 10px solid transparent;
  border-image: url("/img/controls/FlatButton_Frame_Full_01.png") 30 / 10px / 0 stretch;
  filter: sepia(.6) brightness(.72);
}
#save-team:disabled {
  opacity: .45;
  filter: grayscale(.5);
}
.catalog-sort button:hover {
  color: #ffe4a5;
  filter: brightness(1.25);
}
.reset-filters:hover {
  color: #ffe4a5;
  filter: brightness(1.25);
}
.catalog-sort button:active {
  filter: brightness(.8);
}
.reset-filters:active {
  filter: brightness(.8);
}
#save-team:not(:disabled):active {
  filter: brightness(.8);
}
#copy-team:active {
  filter: brightness(.8);
}
.event-control::after {
  content: "✦";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font: 24px Georgia,serif;
  color: #c4bfad;
}
#team-event option {
  background: #0b0d0d;
  color: #eee8db;
  font: 16px Arial,sans-serif;
}
.language-picker summary:hover {
  filter: brightness(1.2);
}
.language-options button[aria-pressed=true] {
  color: var(--control-gold);
}
.value-grid button.selected {
  background: #40351d;
  color: #ffe4a5;
  border-color: var(--control-gold);
}
.close-button:hover {
  color: var(--control-gold);
  border-color: var(--control-gold);
  background: #202018;
}
.menu-back:hover {
  color: var(--control-gold);
  border-color: var(--control-gold);
  background: #202018;
}
#filters fieldset {
  border-color: #706b5859;
}
#filters label:hover:not(:has(input:disabled)) {
  color: #ffe4a5;
}
#filters input[type=radio] {
  display: grid;
  place-content: center;
  flex: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent center/contain no-repeat;
  appearance: none;
  background-image: url("/img/controls/RadioButton_Dot_Inactive.png");
}
#filters input:checked {
  background-color: transparent;
}
#filters input[type=checkbox]:checked::before {
  width: 9px;
  height: 5px;
  border-left: 2px solid #efdab0;
  border-bottom: 2px solid #efdab0;
  transform: rotate(-45deg) translateY(-1px);
  content: none;
}
#filters input[type=radio]:checked::before {
  width: 7px;
  height: 7px;
  background: #efdab0;
  border-radius: 50%;
  content: none;
}
#filters input:disabled {
  cursor: default;
}
#context-menu .context-label {
  font-size: 19px;
  color: var(--control-text);
  font-weight: 400;
}
#share-team input {
  background: #090e0e;
  border: 1px solid var(--control-line);
  border-radius: 0;
  color: var(--control-text);
}
select:focus-visible {
  outline: 2px solid #e4c987;
  outline-offset: 3px;
}
summary:focus-visible {
  outline: 2px solid #e4c987;
  outline-offset: 3px;
}
#filters input[type=checkbox]:checked {
  background-image: url("/img/controls/RadioButton_CheckMark_Active.png");
}
#filters input[type=radio]:checked {
  background-image: url("/img/controls/RadioButton_Dot_Active.png");
}
.game-select {
  width: 300px;
  max-width: 100%;
}
.game-select::after {
  display: none;
}
.game-select-trigger {
  width: 100%;
  height: 44px;
  padding: 0 34px 0 12px;
  position: relative;
  text-align: left;
  border: 9px solid transparent;
  border-image: url("/img/tower-info/frame.png") 32 fill / 9px / 0 stretch;
  color: var(--control-text);
  font: 19px MKRussian,Georgia,serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: radial-gradient(circle at top left,transparent 6px,#080b09 6.5px) top left/51% 51% no-repeat,
radial-gradient(circle at top right,transparent 6px,#080b09 6.5px) top right/51% 51% no-repeat,
radial-gradient(circle at bottom left,transparent 6px,#080b09 6.5px) bottom left/51% 51% no-repeat,
radial-gradient(circle at bottom right,transparent 6px,#080b09 6.5px) bottom right/51% 51% no-repeat;
  background-origin: border-box;
  background-clip: border-box;
}
.game-select-trigger::after {
  content: "✦";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font: 24px Georgia,serif;
  color: #b5af9d;
}
.game-select-list {
  position: fixed;
  z-index: 100;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 10px 30px #000a;
  color: var(--control-text);
  font: 18px MKRussian,Georgia,serif;
  scrollbar-width: thin;
  scrollbar-color: #777262 #080b09;
  border: 9px solid transparent;
  border-image: url("/img/tower-info/frame.png") 32 / 9px / 0 stretch;
  padding: 2px 8px;
  background: radial-gradient(circle at top left,transparent 6px,#080b09 6.5px) top left/51% 51% no-repeat,
radial-gradient(circle at top right,transparent 6px,#080b09 6.5px) top right/51% 51% no-repeat,
radial-gradient(circle at bottom left,transparent 6px,#080b09 6.5px) bottom left/51% 51% no-repeat,
radial-gradient(circle at bottom right,transparent 6px,#080b09 6.5px) bottom right/51% 51% no-repeat;
  background-origin: border-box;
  background-clip: border-box;
}
.game-select-list [role=option] {
  min-height: 40px;
  padding: 10px 8px;
  border-bottom: 1px solid #6d69583d;
  cursor: pointer;
}
.game-select-list [role=option]:last-child {
  border-bottom: 0;
}
.game-select-list [role=option]:hover {
  background: #c4a76a18;
  color: #ecd197;
}
.game-select-list .highlighted {
  background: #c4a76a18;
  color: #ecd197;
}
.game-select-list [aria-selected=true] {
  color: #ecd197;
}
.game-select-trigger:focus-visible {
  outline: none;
  filter: brightness(1.35);
}

.not-found-page {
  text-align: center;
  padding-block: clamp(32px, 8vh, 96px);
}
.not-found-code {
  font-size: clamp(80px, 18vw, 160px);
  line-height: 1;
  color: #ddd59f;
  letter-spacing: .08em;
}
.not-found-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  margin-top: 32px;
}
@media (max-width:1680px) {
  .team-content {
    grid-template-columns: 654px minmax(400px,570px);
  }
  #fighter-details {
    grid-column: 2;
  }
}

@media (max-width:1560px) {
  .team-content {
    flex-wrap: wrap;
  }
  .team-content>.fighter-details {
    flex: 1 1 400px;
  }
}

@media (max-width:1210px) {
  .equipment-content {
    flex-wrap: wrap;
  }
}

@media (max-width:1180px) {
  .team-content {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .team-slots {
    grid-column: 1/-1;
  }
  #fighter-details {
    grid-column: auto;
  }
}

@media (max-width:800px) {
  .site-header {
    margin: 0 20px;
  }
  .header-caption {
    display: none;
  }
  main {
    padding: 24px 20px;
  }
  .site-footer {
    margin: 0 20px;
  }
  .site-footer span:last-child {
    display: none;
  }
  #filters {
    width: 190px;
  }
  .catalog {
    padding: 16px;
  }
  .catalog-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .equipment-heading {
    flex-wrap: wrap;
  }
  .brand {
    font-size: 16px;
  }
}

@media (max-width:760px) {
  .equipment-content {
    gap: 24px;
  }
  .equipment-content>.card-row {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }
  .fighter-details {
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
  }
  .detail-total {
    font-size: 23px;
  }
  .detail-total small {
    display: block;
    font-size: 17px;
  }
  .detail-stat-heading h3 {
    font-size: 25px;
  }
  .detail-special h4 {
    font-size: 23px;
  }
  .team-slots {
    flex: 1 1 100%;
    grid-column: auto;
  }
  .team-content>.fighter-details {
    flex-basis: 100%;
  }
  .team-content {
    grid-template-columns: minmax(0,1fr);
  }
  .site-navigation {
    margin: 0 24px;
    gap: 20px;
  }
  .site-navigation a {
    font-size: 18px;
  }
  .event-control {
    margin-left: 0;
    flex: 1 1 220px;
  }
  #team-event {
    width: 100%;
  }
  .section-heading h1 {
    font-size: 27px;
  }
  #save-team {
    min-width: 120px;
  }
  .picker-header h2 {
    font-size: 21px;
  }
  .game-select {
    width: 100%;
  }
}

@media (max-width:600px) {
  .tower-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 24px 14px;
  }
  .tower-name {
    font-size: clamp(14px,3.7vw,20px);
  }
  .tower-difficulty {
    font-size: clamp(11px,2.8vw,16px);
    gap: 3px;
  }
  .tower-difficulty-icon {
    width: 20px;
    height: 20px;
  }
  .towers-page {
    padding-left: 16px;
    padding-right: 16px;
  }
  .tower-page {
    padding: 24px 16px;
  }
  .tower-floor .team-slots {
    width: 100%;
    min-width: 0;
  }
  .tower-floor .card-row {
    gap: 8px;
    flex-wrap: wrap;
  }
  .tower-floor .fighter-slot {
    width: calc((100% - 16px)/3);
    container-type: inline-size;
  }
  .tower-floor .fighter-slot>.card-button {
    width: 100%;
    aspect-ratio: 150/232;
    overflow: hidden;
  }
  .tower-floor .fighter-card {
    width: 150px;
    transform-origin: top left;
    zoom: var(--tower-card-scale,1);
  }
  .tower-floor .fighter-slot .fighter-card {
    zoom: calc(100cqw / 150px);
  }
  .tower-floor-heading h2 {
    font-size: 19px;
  }
  .tower-modifiers {
    font-size: 16px;
  }
  .tower-floor .fighter-slot.active::before {
    height: calc(100cqw * 232 / 150 + 36px);
  }
  .tower-info-body {
    padding: 12px !important;
    font-size: 17px;
  }
  .tower-info-heading {
    font-size: 20px;
  }
  .reward-cards {
    gap: 8px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .site-navigation a {
    transition: none;
  }
  #save-team {
    transition: none;
  }
  #copy-team {
    transition: none;
  }
  .catalog-sort button {
    transition: none;
  }
  .reset-filters {
    transition: none;
  }
  .close-button {
    transition: none;
  }
  .menu-back {
    transition: none;
  }
}

@media (forced-colors:active) {
  #save-team {
    border: 1px solid ButtonText;
    background: Canvas;
    color: ButtonText;
  }
  #copy-team {
    border: 1px solid ButtonText;
    background: Canvas;
    color: ButtonText;
  }
  .catalog-sort button {
    color: ButtonText;
  }
  .reset-filters {
    color: ButtonText;
  }
  #team-event {
    border: 1px solid ButtonText;
    background: Canvas;
    color: ButtonText;
  }
  .language-picker summary {
    color: ButtonText;
  }
  #filters input {
    appearance: auto;
  }
  .game-select-trigger {
    border: 1px solid ButtonText;
    color: CanvasText;
    background: Canvas;
  }
  .game-select-list {
    color: CanvasText;
    background: Canvas;
  }
  .game-select-trigger:focus-visible {
    outline: 2px solid Highlight;
  }
}
