:root {
  --klx-ink: #0b1e3f;
  --klx-muted: #53627a;
  --klx-blue: #1456cc;
  --klx-cyan: #25c6da;
  --klx-gold: #f4bd35;
  --klx-surface: #fff;
  --klx-soft: #f4f7fb;
  --klx-line: #dce4ef;
  --klx-shadow: 0 18px 55px rgba(10, 34, 74, 0.12);
}
.klx-collection {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 80px;
  overflow: clip;
  color: var(--klx-ink);
  font-family: inherit;
}
.klx-collection * {
  box-sizing: border-box;
}
.klx-collection__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  font-size: 0.84rem;
  color: var(--klx-muted);
}
.klx-collection__crumbs a {
  color: var(--klx-blue);
  text-decoration: none;
}
.klx-collection__crumbs a:hover,
.klx-collection__crumbs a:focus-visible {
  text-decoration: underline;
}
.klx-collection__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: 32px;
  align-items: center;
  padding: 42px;
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 83% 18%,
      rgba(37, 198, 218, 0.35),
      transparent 24%
    ),
    linear-gradient(135deg, #081a39, #123f85 65%, #0f67a1);
  color: #fff;
  box-shadow: var(--klx-shadow);
}
.klx-collection__eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #91e9f1;
}
.klx-collection__hero h1,
.klx-collection--empty h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #fff;
}
.klx-collection__hero p {
  max-width: 760px;
  margin: 0;
  color: #e7f1ff;
  font-size: 1.05rem;
}
.klx-collection__snapshot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}
.klx-collection__snapshot strong {
  font-size: 1.55rem;
  color: #fff;
}
.klx-collection__snapshot span {
  align-self: center;
  font-size: 0.82rem;
  color: #cfe0f7;
}
.klx-collection__progress {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 24px 0 0;
  padding: 20px 24px;
  border: 1px solid var(--klx-line);
  border-radius: 18px;
  background: var(--klx-surface);
  box-shadow: 0 10px 30px rgba(10, 34, 74, 0.07);
}
.klx-collection__progress-label {
  display: block;
  color: var(--klx-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.klx-collection__progress strong {
  font-size: 1.15rem;
}
.klx-collection__bar {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}
.klx-collection__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--klx-blue), var(--klx-cyan));
  transition: width 0.25s ease;
}
.klx-collection__toolbar {
  position: sticky;
  top: 32px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 0.7fr) auto auto;
  gap: 14px;
  align-items: end;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--klx-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(10, 34, 74, 0.09);
  backdrop-filter: blur(10px);
}
.klx-collection__toolbar label:not(.klx-collection__toggle) {
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--klx-muted);
}
.klx-collection__toolbar input[type="search"],
.klx-collection__toolbar select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #b8c5d8;
  border-radius: 10px;
  background: #fff;
  color: var(--klx-ink);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}
.klx-collection__toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-weight: 700;
}
.klx-collection__result-count {
  align-self: center;
  color: var(--klx-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.klx-collection__status {
  min-height: 22px;
  margin: -10px 0 12px;
  color: #146b42;
  font-weight: 700;
}
.klx-collection__status.is-error {
  color: #a32929;
}
.klx-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.klx-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--klx-line);
  border-radius: 18px;
  background: var(--klx-surface);
  box-shadow: 0 10px 28px rgba(10, 34, 74, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.klx-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(10, 34, 74, 0.15);
}
.klx-card.is-owned {
  border-color: #44a978;
  box-shadow:
    0 0 0 2px rgba(68, 169, 120, 0.16),
    0 16px 36px rgba(10, 34, 74, 0.1);
}
.klx-card.is-saving {
  opacity: 0.62;
  pointer-events: none;
}
.klx-card__image {
  display: grid;
  place-items: center;
  aspect-ratio: 245/342;
  padding: 14px;
  background: linear-gradient(145deg, #edf3fb, #f9fbfe);
}
.klx-card__image-trigger {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.klx-card__image-trigger img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(9, 27, 57, 0.18));
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}
.klx-card__image-trigger:hover img,
.klx-card__image-trigger:focus-visible img {
  transform: scale(1.025);
  filter: drop-shadow(0 16px 18px rgba(9, 27, 57, 0.24));
}
.klx-card__body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: 17px;
}
.klx-card__identity,
.klx-card__controls {
  min-width: 0;
}
.klx-card__controls {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.klx-card__heading {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.klx-card__heading > div {
  min-width: 0;
}
.klx-card h2 {
  margin: 0;
  color: var(--klx-ink);
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.klx-card__heading p {
  margin: 4px 0 0;
  color: var(--klx-blue);
  font-weight: 800;
}
.klx-card__favorite {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--klx-line);
  border-radius: 50%;
  background: #fff;
  color: #a8b1bf;
  font-size: 1rem;
}
.klx-card__favorite.is-active {
  border-color: #e2a600;
  background: #fff6d6;
  color: #d79800;
}
.klx-card__rarity {
  min-height: 36px;
  margin: 12px 0;
  color: var(--klx-muted);
  font-size: 0.78rem;
}
.klx-card__actions {
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: auto;
}
.klx-card__actions > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.klx-card__actions button,
.klx-card details button {
  min-height: 38px;
  min-width: 0;
  border: 1px solid var(--klx-blue);
  border-radius: 9px;
  background: #fff;
  color: var(--klx-blue);
  font-weight: 800;
}
.klx-card__actions button[aria-pressed="true"]:not(.klx-card__wanted) {
  background: var(--klx-blue);
  color: #fff;
}
.klx-card__wanted {
  grid-column: 1/-1;
  border-color: #c99200 !important;
  color: #855f00 !important;
}
.klx-card__wanted.is-active {
  background: #fff4c7;
}
.klx-card__actions label {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--klx-muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.klx-card__actions input {
  width: 58px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 4px;
  border: 1px solid #b8c5d8;
  border-radius: 8px;
}
.klx-card details {
  min-width: 0;
  margin-top: 11px;
  border-top: 1px solid var(--klx-line);
  padding-top: 9px;
}
.klx-card summary {
  cursor: pointer;
  color: var(--klx-blue);
  font-size: 0.8rem;
  font-weight: 800;
}
.klx-card textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 80px;
  margin: 8px 0;
  padding: 8px;
  border: 1px solid #b8c5d8;
  border-radius: 8px;
  resize: vertical;
}
.klx-card details button {
  width: 100%;
}
.klx-collection__source {
  margin-top: 34px;
  padding: 22px;
  border-radius: 16px;
  background: var(--klx-soft);
  color: var(--klx-muted);
}
.klx-collection__source strong {
  color: var(--klx-ink);
}
.klx-collection__source p {
  margin: 5px 0 0;
}
.klx-collection__no-results {
  text-align: center;
  padding: 40px;
  color: var(--klx-muted);
}
.klx-collection--empty {
  padding: 42px;
  border-radius: 24px;
  background: #0b2b5e;
}
.klx-collection--empty p {
  color: #dceaff;
}
.klx-collection--empty .klx-collection__eyebrow {
  color: #91e9f1;
}
.klx-collection button:focus-visible,
.klx-collection input:focus-visible,
.klx-collection select:focus-visible,
.klx-collection textarea:focus-visible,
.klx-collection summary:focus-visible,
.klx-collection a:focus-visible {
  outline: 3px solid var(--klx-gold);
  outline-offset: 3px;
}
@media (max-width: 1120px) {
  .klx-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1020px) {
  .klx-collection__toolbar {
    top: 12px;
    grid-template-columns: 1fr 1fr;
  }
  .klx-collection__result-count {
    justify-self: end;
  }
}
@media (max-width: 820px) {
  .klx-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .klx-collection {
    padding-inline: 14px;
  }
  .klx-collection__hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .klx-collection__snapshot {
    max-width: 320px;
  }
  .klx-card-grid {
    gap: 12px;
  }
  .klx-collection__progress {
    grid-template-columns: 1fr auto;
  }
  .klx-collection__bar {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .klx-collection__toolbar {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
  }
  .klx-collection__result-count {
    justify-self: start;
  }
  .klx-card__body {
    padding: 13px;
  }
}
@media (max-width: 640px) {
  .klx-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .klx-card {
    display: flex;
    flex-direction: column;
  }
  .klx-card:hover {
    transform: none;
  }
  .klx-card__image {
    aspect-ratio: auto;
    min-height: 0;
    padding: 20px 16px 16px;
  }
  .klx-card__image-trigger {
    width: clamp(190px, 70%, 260px);
    height: auto;
    aspect-ratio: 245/342;
  }
  .klx-card__image-trigger img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
  }
  .klx-card__body {
    min-width: 0;
    padding: 12px 16px 16px;
  }
  .klx-card__identity {
    padding-bottom: 13px;
    text-align: center;
  }
  .klx-card__heading {
    position: relative;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding-inline: 48px;
  }
  .klx-card__heading > div {
    width: 100%;
  }
  .klx-card h2 {
    font-size: 1.08rem;
    line-height: 1.22;
  }
  .klx-card__heading p {
    margin-top: 3px;
  }
  .klx-card__favorite {
    position: absolute;
    top: 50%;
    right: 0;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
  }
  .klx-card .klx-card__rarity {
    min-height: 0;
    margin: 6px 0 0;
  }
  .klx-card__controls {
    padding-top: 13px;
    border-top: 1px solid var(--klx-line);
  }
  .klx-card .klx-card__variant {
    margin-bottom: 10px;
  }
  .klx-card .klx-card__variant select {
    min-height: 44px;
  }
  .klx-card__actions {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 8px;
    margin-top: 0;
  }
  .klx-card__actions button,
  .klx-card__actions label {
    width: 100%;
  }
  .klx-card__actions button {
    min-height: 44px;
  }
  .klx-card__actions label {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .klx-card__actions input {
    width: 100%;
    min-height: 44px;
    padding-inline: 10px;
    font-size: 1rem;
  }
  .klx-card__wanted {
    grid-column: auto;
  }
  .klx-card__variant,
  .klx-card__variant select,
  .klx-card details,
  .klx-card summary {
    min-width: 0;
    max-width: 100%;
  }
  .klx-card__variant select {
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .klx-card details {
    margin-top: 10px;
    padding-top: 8px;
  }
  .klx-card summary {
    display: flex;
    min-height: 40px;
    align-items: center;
  }
  .klx-card textarea {
    min-height: 92px;
  }
  .klx-card .klx-card__image-placeholder {
    width: clamp(190px, 70%, 260px);
    height: auto;
    min-height: 0;
    aspect-ratio: 245/342;
  }
  .klx-collection__hero h1 {
    font-size: 2.15rem;
  }
}
@media (min-width: 769px) and (max-width: 1120px) {
  .ast-above-header-wrap .ast-builder-grid-row.ast-grid-center-col-layout {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .ast-above-header-wrap .site-header-above-section-center,
  .ast-above-header-wrap .ast-header-search,
  .ast-above-header-wrap .search-form,
  .ast-above-header-wrap .search-field {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
.klx-card__image-placeholder {
  display: grid;
  width: 82%;
  height: 82%;
  min-height: 160px;
  place-items: center;
  padding: 18px;
  border: 1px dashed #9fb0c8;
  border-radius: 14px;
  background: #fff;
  color: var(--klx-muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}
.klx-card__image-placeholder[hidden],
.klx-card__image-trigger[hidden] {
  display: none !important;
}
.klx-card-viewer {
  width: min(92vw, 560px);
  max-height: 92vh;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: #07162f;
  color: #fff;
  box-shadow: 0 30px 90px rgba(2, 12, 31, 0.55);
}
.klx-card-viewer::backdrop {
  background: rgba(3, 12, 29, 0.78);
  backdrop-filter: blur(7px);
}
.klx-card-viewer figure {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin: 0;
}
.klx-card-viewer img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78vh;
  border-radius: 16px;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.42));
}
.klx-card-viewer figcaption {
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}
.klx-card-viewer__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(4, 18, 44, 0.88);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.klx-card-viewer__close:hover,
.klx-card-viewer__close:focus-visible {
  background: #fff;
  color: #0b2b5e;
}
.klx-set-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.klx-set-card {
  display: flex;
  min-height: 185px;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  padding: 26px;
  border: 1px solid var(--klx-line);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f5f8fc);
  box-shadow: 0 10px 28px rgba(10, 34, 74, 0.07);
  color: var(--klx-muted);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.klx-set-card:hover,
.klx-set-card:focus-visible {
  transform: translateY(-4px);
  border-color: #8eb7f0;
  box-shadow: 0 18px 42px rgba(10, 34, 74, 0.14);
  text-decoration: none;
}
.klx-set-card strong {
  color: var(--klx-ink);
  font-size: 1.2rem;
}
.klx-set-card__era {
  color: var(--klx-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.klx-set-card__progress {
  margin-top: 8px;
  color: #146b42;
  font-weight: 800;
}
.klx-hierarchy-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 24px;
  align-items: center;
  margin: 30px 0 24px;
  padding: 24px 26px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 20px;
  background: linear-gradient(135deg, #071a3d, #0b3f7a 72%, #075985);
  box-shadow: 0 18px 44px rgba(6, 25, 56, 0.18);
  color: #dbeafe;
}
.klx-hierarchy-intro span,
.klx-era-summary span {
  display: block;
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.klx-hierarchy-intro strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.3;
}
.klx-hierarchy-intro p {
  margin: 0;
  color: #dbeafe;
}
.klx-era-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 24px 0 34px;
}
.klx-era-card {
  display: grid;
  grid-template-rows: 210px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--klx-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(10, 34, 74, 0.09);
  color: var(--klx-muted);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.klx-era-card:hover,
.klx-era-card:focus-visible,
.klx-set-card--visual:hover,
.klx-set-card--visual:focus-visible {
  transform: translateY(-5px);
  border-color: #72a8e7;
  box-shadow: 0 20px 48px rgba(10, 34, 74, 0.17);
  text-decoration: none;
}
.klx-era-card__media,
.klx-set-card__media {
  display: grid;
  position: relative;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #0c2855, #0d5ea4);
}
.klx-era-card__media img,
.klx-set-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  transition: transform 0.28s ease;
}
.klx-era-card:hover img,
.klx-era-card:focus-visible img,
.klx-set-card--visual:hover img,
.klx-set-card--visual:focus-visible img {
  transform: scale(1.035);
}
.klx-hierarchy-fallback {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}
.klx-era-card__body,
.klx-set-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 23px 24px 24px;
}
.klx-era-card__body > strong,
.klx-set-card__body > strong {
  color: var(--klx-ink);
  font-size: 1.25rem;
  line-height: 1.25;
}
.klx-era-card__stats {
  color: #40516b;
  font-size: 0.86rem;
  line-height: 1.45;
}
.klx-era-card__stats b {
  color: #146b42;
}
.klx-mini-progress {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce7f5;
}
.klx-mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #167247, #22a665);
}
.klx-hierarchy-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 7px;
  color: var(--klx-blue);
  font-weight: 900;
}
.klx-era-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 20px;
  align-items: end;
  margin: 28px 0 10px;
  padding: 20px 22px;
  border: 1px solid #c7d9ef;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff, #eaf3ff);
}
.klx-era-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--klx-ink);
  font-size: 1.05rem;
}
.klx-era-summary > span {
  color: #146b42;
  font-size: 1.15rem;
}
.klx-era-summary .klx-mini-progress {
  grid-column: 1 / -1;
}
.klx-set-grid--visual {
  align-items: stretch;
}
.klx-set-card--visual {
  display: grid;
  min-height: 0;
  grid-template-rows: 170px minmax(0, 1fr);
  justify-content: stretch;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.klx-set-card--visual .klx-set-card__progress {
  margin-top: 3px;
  font-size: 0.85rem;
}
.klx-hub-switch {
  text-align: center;
}
.klx-hub-switch a {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 999px;
  background: #e9f2ff;
  color: var(--klx-blue);
  font-weight: 800;
  text-decoration: none;
}
.klx-card__variant {
  display: grid;
  gap: 5px;
  margin: 0 0 12px;
  color: var(--klx-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.klx-card__variant select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid #b8c5d8;
  border-radius: 9px;
  background: #fff;
  color: var(--klx-ink);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}
.klx-card__variant-label {
  margin: 0 0 12px;
  color: var(--klx-muted);
  font-size: 0.76rem;
  font-weight: 700;
}
.klx-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0 !important;
}
.klx-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: #fff;
  color: #0b2b5e !important;
  font-weight: 800;
  text-decoration: none;
}
.klx-button--secondary {
  background: transparent;
  color: #fff !important;
}
.klx-set-collection-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
  padding: 20px;
  border: 1px solid var(--klx-line);
  border-radius: 18px;
  background: linear-gradient(135deg, #f6f9fd, #eef5ff);
}
.klx-set-collection-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 15px;
  border-radius: 9px;
  background: var(--klx-blue);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}
.klx-set-collection-links a:last-child {
  border: 1px solid var(--klx-blue);
  background: #fff;
  color: var(--klx-blue) !important;
}
@media (max-width: 900px) {
  .klx-set-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .klx-era-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .klx-hierarchy-intro {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 21px;
  }
  .klx-era-card {
    grid-template-rows: 165px minmax(0, 1fr);
  }
  .klx-era-card__body,
  .klx-set-card__body {
    padding: 20px;
  }
}
@media (max-width: 560px) {
  .klx-set-grid {
    grid-template-columns: 1fr;
  }
  .klx-set-card {
    min-height: 150px;
  }
  .klx-set-collection-links {
    display: grid;
  }
  .klx-set-collection-links a {
    justify-content: center;
  }
  .klx-era-card {
    grid-template-rows: 150px minmax(0, 1fr);
  }
  .klx-set-card--visual {
    grid-template-rows: 150px minmax(0, 1fr);
  }
  .klx-era-summary {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .klx-era-summary .klx-mini-progress {
    grid-column: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .klx-card,
  .klx-collection__bar span,
  .klx-card__image-trigger img {
    transition: none;
  }
  .klx-card:hover {
    transform: none;
  }
  .klx-era-card,
  .klx-set-card--visual,
  .klx-era-card img,
  .klx-set-card--visual img {
    transition: none;
  }
}
.klx-game-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  margin: 30px 0;
}
.klx-game-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--klx-line);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #edf5ff);
  box-shadow: 0 12px 32px rgba(10, 34, 74, 0.09);
  color: var(--klx-muted);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.klx-game-card:hover,
.klx-game-card:focus-visible {
  transform: translateY(-4px);
  border-color: #73a8ef;
  box-shadow: 0 20px 46px rgba(10, 34, 74, 0.16);
  text-decoration: none;
}
.klx-game-card__mark {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #0b2b5e, #1456cc);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.klx-game-card > span:nth-child(2) {
  display: grid;
  gap: 4px;
}
.klx-game-card small {
  color: var(--klx-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.klx-game-card strong {
  color: var(--klx-ink);
  font-size: 1.35rem;
}
.klx-game-card__cta {
  color: var(--klx-blue);
  font-weight: 900;
  white-space: nowrap;
}
.klx-verify {
  max-width: 760px;
  margin: 28px auto 80px;
  padding: 38px;
  border-radius: 24px;
  background: linear-gradient(145deg, #0b2b5e, #123f85);
  box-shadow: var(--klx-shadow);
  color: #e7f1ff;
}
.klx-verify * {
  box-sizing: border-box;
}
.klx-verify > h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
}
.klx-verify__form h2 {
  margin: 0 0 8px;
  color: var(--klx-ink);
  font-size: 1.35rem;
}
.klx-verify__notice {
  margin: 18px 0;
  padding: 15px 17px;
  border-radius: 12px;
  background: #e8fff3;
  color: #12663e;
  font-weight: 700;
}
.klx-verify__notice--error {
  background: #fff0f0;
  color: #922;
}
.klx-verify__form {
  display: grid;
  gap: 13px;
  margin: 25px 0 0;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  color: var(--klx-muted);
}
.klx-verify__form p {
  margin: 0;
}
.klx-verify__form label:not(.klx-verify__trap) {
  display: grid;
  gap: 6px;
  color: var(--klx-ink);
  font-weight: 800;
}
.klx-verify__form input[type="email"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b8c5d8;
  border-radius: 10px;
  font-size: 1rem;
}
.klx-verify__form button {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--klx-blue);
  color: #fff;
  font-weight: 900;
}
.klx-verify__trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.klx-verify .klx-button--secondary {
  border-color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 680px) {
  .klx-game-card {
    grid-template-columns: 64px 1fr;
    padding: 22px;
  }
  .klx-game-card__mark {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }
  .klx-game-card__cta {
    grid-column: 1/-1;
  }
  .klx-verify {
    margin-inline: 14px;
    padding: 27px 20px;
  }
}
