/* [project]/public/css/legendary-cards.css [app-client] (css) */
.legendary-page, .legendary-dialog-backdrop {
  --lc-gold: #edce62;
  --lc-cream: #f5e7c8;
  --lc-muted: #c4ad95;
  --lc-line: #d6aa4e52;
  --lc-label: "Staatliches", sans-serif;
  --lc-copy: "Special Elite", system-ui;
  color: var(--lc-cream);
  font-family: var(--lc-copy);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.legendary-page *, .legendary-dialog-backdrop * {
  box-sizing: border-box;
}

.legendary-page {
  background: linear-gradient(#140d12a8, #191013e6 480px, #171010 850px), url("/img/TreasureRoom/bg1.webp") top / auto 850px no-repeat, #171010;
  min-height: 100vh;
}

.legendary-main {
  display: block;
}

.legendary-shell {
  width: min(1320px, 100% - 96px);
  margin: 0 auto;
  padding: 140px 0 50px;
  position: relative;
}

.legendary-header {
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 0 50px 30px 20px;
  display: flex;
  position: relative;
}

.legendary-header:after {
  content: "";
  pointer-events: none;
  opacity: .85;
  background: url("/img/f01.webp") center / 100% 100% no-repeat;
  height: 8px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.legendary-eyebrow {
  color: #dbbd83;
  font-family: var(--lc-label);
  letter-spacing: .2em;
  font-size: .84rem;
  font-weight: normal;
  line-height: 1.5;
}

.legendary-eyebrow > span {
  color: var(--lc-gold);
  padding-right: 7px;
}

.legendary-header h1 {
  letter-spacing: .01em;
  color: var(--lc-cream);
  text-shadow: 0 5px 25px #000;
  margin: 12px 0 18px;
  font-family: Metal Mania, fantasy;
  font-size: clamp(3.8rem, 6.7vw, 6.4rem);
  font-weight: 400;
  line-height: 1;
}

.legendary-header h1 > span {
  color: #e0bf73;
}

.legendary-intro {
  color: #d2c0ac;
  max-width: 650px;
  margin: 0 0 12px;
  font-size: .95rem;
  line-height: 1.8;
}

.legendary-text-link {
  color: #ecd48d;
  text-underline-offset: 7px;
  align-items: center;
  gap: 28px;
  min-height: 44px;
  font-size: .83rem;
  -webkit-text-decoration: underline #b99a5355;
  text-decoration: underline #b99a5355;
  display: inline-flex;
}

.legendary-text-link:hover {
  color: #fff1b6;
  text-decoration-color: currentColor;
}

.legendary-seal {
  text-align: center;
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  width: 220px;
  display: flex;
  position: relative;
}

.legendary-seal-emblem {
  filter: drop-shadow(0 8px 12px #0009);
  width: 190px;
  height: auto;
}

.legendary-seal > span {
  font-family: var(--lc-label);
  letter-spacing: .17em;
  color: #e6ca86;
  margin-top: 6px;
  font-size: .83rem;
}

.legendary-seal > small {
  color: #c6ad8e;
  margin-top: 8px;
  font-size: .72rem;
}

.legendary-art-note {
  align-items: flex-start;
  gap: 16px;
  margin: 28px 0 22px;
  padding: 0 20px;
  display: flex;
}

.legendary-note-icon {
  color: #d0ad66;
  padding-top: 2px;
  font-size: 1.9rem;
}

.legendary-art-note p {
  color: #c0aa96;
  max-width: 850px;
  margin: 0;
  font-size: .8rem;
  line-height: 1.8;
}

.legendary-art-note strong {
  color: #edd7b0;
  font-weight: normal;
}

.legendary-sample-shortcuts {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 12px;
  display: flex;
}

.legendary-sample-shortcuts > span {
  color: #bfa37d;
  font-family: var(--lc-label);
  letter-spacing: .1em;
  margin-right: 4px;
  font-size: .74rem;
}

.legendary-sample-shortcuts button {
  color: #32211d;
  min-height: 44px;
  font-family: var(--lc-label);
  letter-spacing: .03em;
  cursor: pointer;
  background: url("/img/Generator/Button.webp") center / 100% 100% no-repeat;
  border: 0;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 10px 24px;
  font-size: .9rem;
  transition: filter .18s, transform .18s;
  display: inline-flex;
}

.legendary-sample-shortcuts button:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.legendary-filter-panel {
  padding: 4px 20px 18px;
  position: relative;
}

.legendary-chapter {
  color: #bfa169;
  align-items: center;
  gap: 13px;
  margin: 10px 0 22px;
  display: flex;
}

.legendary-chapter:before, .legendary-chapter:after {
  content: "";
  background: linear-gradient(90deg, #0000, #a8844770);
  flex: 1;
  height: 1px;
}

.legendary-chapter:after {
  transform: rotate(180deg);
}

.legendary-chapter h2 {
  color: #e9d2a4;
  margin: 0;
  font: 400 1.65rem Metal Mania, fantasy;
}

.legendary-chapter > span {
  font-size: .7rem;
}

.legendary-toolbar {
  grid-template-columns: minmax(200px, 1.5fr) 1fr 1.2fr 1fr;
  gap: 24px;
  display: grid;
}

.legendary-toolbar label {
  min-width: 0;
  display: block;
}

.legendary-toolbar label > span {
  font-family: var(--lc-label);
  letter-spacing: .12em;
  color: #cdb28b;
  margin: 0 0 8px 4px;
  font-size: .8rem;
  display: block;
}

.legendary-toolbar input, .legendary-toolbar select {
  color: #f1e0c9;
  width: 100%;
  min-width: 0;
  height: 50px;
  font-family: var(--lc-copy);
  background: linear-gradient(0deg, #5e3b343d, #37272b35);
  border: 0;
  border-bottom: 1px solid #ac884f;
  border-radius: 0;
  outline: none;
  padding: 0 12px;
  font-size: .86rem;
}

.legendary-toolbar input::placeholder {
  color: #bba690;
  opacity: 1;
}

.legendary-toolbar select {
  cursor: pointer;
  text-overflow: ellipsis;
  padding-right: 3px;
}

.legendary-toolbar select option {
  color: #f4e8d1;
  background: #281d1c;
}

.legendary-toolbar input:focus-visible, .legendary-toolbar select:focus-visible {
  border-bottom-color: var(--lc-gold);
  outline: 2px solid var(--lc-gold);
  outline-offset: 4px;
}

.legendary-filter-footer {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 55px;
  padding-top: 10px;
  display: flex;
}

.legendary-filter-footer p {
  color: #bda78f;
  margin: 0;
  font-size: .73rem;
  line-height: 1.6;
}

.legendary-filter-footer button {
  color: #efd6a5;
  min-height: 44px;
  font-family: var(--lc-label);
  cursor: pointer;
  background: url("/img/Generator/Button2.webp") center / 100% 100% no-repeat;
  border: 0;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 8px 22px;
  font-size: .88rem;
  display: flex;
}

.legendary-label {
  font-family: var(--lc-label);
  letter-spacing: .13em;
  color: #c1a77f;
  font-size: .73rem;
}

.legendary-notice {
  color: #cbb699;
  background: linear-gradient(90deg, #a887340c, #0000);
  border-block: 1px solid #a8873429;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  padding: 12px 20px 12px 36px;
  font-size: .78rem;
  line-height: 1.7;
  display: flex;
  position: relative;
}

.legendary-notice:before {
  content: "";
  pointer-events: none;
  border: 1px solid #d5b35e;
  width: 7px;
  height: 7px;
  position: absolute;
  top: 20px;
  left: 13px;
  transform: rotate(45deg);
}

.legendary-notice p {
  margin: 0;
}

.legendary-catalog-time {
  color: #b7a086;
  margin: 14px 0 0;
  font-size: .7rem;
  line-height: 1.6;
  display: block;
}

.legendary-notice .legendary-catalog-time {
  margin-top: 4px;
}

.legendary-notice--error {
  background: #b05c4d15;
  border-color: #b05c4d;
}

.legendary-notice button, .legendary-dialog-state button {
  color: #eed898;
  min-height: 44px;
  font-family: var(--lc-label);
  cursor: pointer;
  background: url("/img/Generator/Button2.webp") center / 100% 100% no-repeat;
  border: 0;
  flex-shrink: 0;
  padding: 10px 26px;
  font-size: .95rem;
}

.legendary-results-bar {
  color: #c6b29b;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 30px 10px 26px;
  font-size: .83rem;
  line-height: 1.6;
  display: flex;
}

.legendary-results-bar strong {
  font-family: var(--lc-label);
  color: #ebdabb;
  font-size: 1.4rem;
  font-weight: normal;
}

.legendary-results-divider {
  color: #94764d;
  margin: 0 10px;
}

.legendary-previous-note {
  color: #c2a676;
  margin: 0 0 17px;
  font-size: .8rem;
  line-height: 1.6;
}

.legendary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 40px;
  padding: 0 12px;
  display: grid;
}

.legendary-grid--previous {
  opacity: .55;
}

.legendary-tile {
  min-width: 0;
  color: var(--lc-cream);
  text-align: left;
  cursor: pointer;
  font-family: var(--lc-copy);
  isolation: isolate;
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
  background: none;
  border: 0;
  padding: 0;
}

.legendary-tile-stage {
  perspective: 1100px;
  transition: transform .3s;
}

.legendary-tile-flipper {
  aspect-ratio: 2 / 3.02;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.2, .65, .25, 1);
  position: relative;
}

.legendary-tile-frame {
  backface-visibility: hidden;
  background: radial-gradient(at 50% 35%, #67494755, #0000 75%), #211618;
  border: 1px solid #9b773d;
  border-radius: 18px 5px;
  flex-direction: column;
  transition: border-color .3s, box-shadow .3s;
  display: flex;
  position: absolute;
  inset: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 4px #1b1512, inset 0 0 0 5px #a7844945, 0 12px 25px #0004;
}

.legendary-tile-frame--front {
  transform: translateZ(.5px);
}

.legendary-tile-frame--back {
  transform: rotateY(180deg)translateZ(.5px);
}

.legendary-tile-frame:after {
  content: "";
  z-index: 4;
  pointer-events: none;
  border: 1px solid #bd944833;
  border-radius: 8px 1px;
  position: absolute;
  inset: 5px;
}

.legendary-tile-heading {
  z-index: 3;
  color: #d9bb78;
  font-family: var(--lc-label);
  letter-spacing: normal;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 17px 7px;
  font-size: .875rem;
  display: flex;
  position: relative;
}

.legendary-tile-art {
  position: absolute;
  inset: 12% 8% 23%;
}

.legendary-tile-art img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.legendary-tile-image-unavailable {
  color: #bca683;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  font-size: .875rem;
  line-height: 1.8;
  display: flex;
}

.legendary-tile-image-unavailable > span:first-child {
  color: #ceb176;
  font-size: 2rem;
}

.legendary-tile-frame--full-body .legendary-tile-art {
  inset: 0;
}

.legendary-tile-frame--full-body .legendary-tile-art img {
  object-fit: cover;
}

.legendary-tile-frame--full-body .legendary-tile-heading {
  text-shadow: 0 2px 5px #000;
  background: linear-gradient(#120b08d9, #0000);
  padding-bottom: 20px;
}

.legendary-tile-foil {
  z-index: 2;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: screen;
  background: linear-gradient(120deg, #0000 18%, #e1cc7230 34%, #6fccd169 42%, #b396d92e 48%, #f6db8b82 57%, #0000 68%) 90% 10% / 250% 250%;
  transition: background-position .8s, opacity .4s;
  position: absolute;
  inset: 0;
}

.legendary-tile-details {
  z-index: 3;
  text-align: center;
  background: linear-gradient(#0000, #17100de8 29%, #17100d 98%);
  margin-top: auto;
  padding: 44px 15px 18px;
  position: relative;
}

.legendary-stars {
  color: var(--lc-gold, #f0d13d);
  letter-spacing: .1em;
  text-shadow: 0 1px 2px #000;
  white-space: nowrap;
  font-family: system-ui, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.35;
  display: block;
}

.legendary-tile h2 {
  font-family: var(--lc-label);
  color: #f0dfbd;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 10px 0 8px;
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
  font-weight: normal;
  line-height: 1.12;
  overflow: hidden;
}

.legendary-tile-status {
  font-family: var(--lc-label);
  letter-spacing: .08em;
  color: #bda379;
  font-size: .68rem;
  line-height: 1.5;
  display: block;
}

.legendary-tile-action {
  color: #e5c995;
  min-height: 46px;
  font-family: var(--lc-label);
  letter-spacing: .045em;
  background: url("/img/Generator/Button2.webp") center / 100% 100% no-repeat;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 12px 8px 0;
  padding: 10px 18px;
  font-size: .92rem;
  display: flex;
}

.legendary-tile-action > span:last-child {
  color: #e5c582;
}

.legendary-tile-hover-hint {
  display: none;
}

.legendary-tile:focus-visible .legendary-tile-flipper {
  transform: rotateY(180deg);
}

.legendary-tile:focus-visible .legendary-tile-frame {
  border-color: #d8bc64;
}

@media (hover: hover) and (pointer: fine) {
  .legendary-tile-hover-hint {
    display: inline;
  }

  .legendary-tile:hover .legendary-tile-stage {
    transform: translateY(-5px)rotate(-.45deg);
  }

  .legendary-tile:hover .legendary-tile-flipper {
    transform: rotateY(180deg);
  }

  .legendary-tile:hover .legendary-tile-frame {
    border-color: #d8bc64;
    box-shadow: 0 16px 35px #0006, 0 0 26px #be9e2210;
  }

  .legendary-tile:hover .legendary-tile-foil {
    opacity: .58;
    background-position: 5% 85%;
  }

  .legendary-tile:hover .legendary-tile-action {
    color: #f0d99a;
  }
}

.legendary-page button:focus-visible, .legendary-page a:focus-visible, .legendary-dialog button:focus-visible, .legendary-dialog a:focus-visible {
  outline: 2px solid var(--lc-gold);
  outline-offset: 5px;
}

.legendary-page button:disabled, .legendary-dialog button:disabled {
  opacity: .5;
  cursor: wait;
}

.legendary-empty {
  text-align: center;
  border-block: 1px solid var(--lc-line);
  justify-items: center;
  gap: 17px;
  padding: 75px 20px;
  display: grid;
}

.legendary-empty > span {
  color: #bb9b61;
  font-size: 3rem;
}

.legendary-empty h2 {
  font-family: var(--lc-heading);
  color: #dbc5a6;
  font-size: 1.65rem;
  font-weight: 400;
}

.legendary-empty p {
  color: var(--lc-muted);
  font-size: .875rem;
  line-height: 1.8;
}

.legendary-load-more {
  justify-content: center;
  margin-top: 46px;
  display: flex;
}

.legendary-load-more button {
  color: #f4dcad;
  width: min(340px, 100%);
  min-height: 58px;
  font-family: var(--lc-label);
  letter-spacing: .07em;
  cursor: pointer;
  background: url("/img/PublicSale/button.webp") center / 100% 100% no-repeat;
  border: 0;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 14px 32px;
  font-size: 1.15rem;
  transition: filter .18s;
  display: flex;
}

.legendary-load-more button:hover, .legendary-filter-footer button:hover {
  filter: brightness(1.2);
}

.legendary-footer {
  text-align: center;
  border-top: 1px solid var(--lc-line);
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 65px;
  padding-top: 26px;
  display: flex;
}

.legendary-footer > span {
  color: #c09b56;
}

.legendary-footer p {
  color: #c0a988;
  font-size: .875rem;
  line-height: 2;
}

.legendary-footer p > span {
  color: #9e8b7a;
  font-size: .875rem;
}

.legendary-dialog-backdrop {
  z-index: 10000;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: #0b0707e8;
  justify-content: center;
  align-items: center;
  padding: 22px;
  display: flex;
  position: fixed;
  inset: 0;
  overflow-y: auto;
}

.legendary-dialog {
  overscroll-behavior: contain;
  background: radial-gradient(at 30% 20%, #65442c24, #0000 65%), #17100e;
  border: 1px solid #9a77465e;
  outline: none;
  width: min(1260px, 100%);
  max-height: calc(100dvh - 44px);
  position: relative;
  overflow-y: auto;
  box-shadow: 0 30px 100px #000b;
}

.legendary-dialog-header {
  z-index: 5;
  border-bottom: 1px solid var(--lc-line);
  background: #1e1512;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 25px 16px;
  display: flex;
  position: relative;
}

.legendary-dialog-header .legendary-eyebrow {
  font-family: Staatliches, sans-serif;
  font-size: .875rem;
  font-weight: 400;
  display: block;
}

.legendary-dialog-header h2 {
  color: #f3dfb8;
  margin-top: 7px;
  font-family: Metal Mania, fantasy;
  font-size: 1.9rem;
  font-weight: normal;
  line-height: 1.1;
}

.legendary-dialog-close {
  border: 1px solid var(--lc-line);
  color: #f0d79d;
  cursor: pointer;
  background: #38251e;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
  display: flex;
}

.legendary-dialog-title {
  flex: 220px;
  min-width: 0;
}

.legendary-dialog-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  display: flex;
}

.legendary-dialog-view-mode {
  color: #f2d697;
  min-height: 44px;
  font: 400 16px/1.5 var(--lc-copy);
  cursor: pointer;
  white-space: nowrap;
  background: linear-gradient(#412c1e, #241810);
  border: 1px solid #a78249;
  padding: 10px 16px;
}

.legendary-dialog-view-mode:hover, .legendary-dialog-view-mode[aria-pressed="true"] {
  border-color: var(--lc-gold);
  background: #483320;
}

.legendary-dialog-view-mode > [data-view-mode-icon] {
  margin-right: 5px;
}

.legendary-dialog-backdrop.legendary-dialog-backdrop--immersive {
  background: #050404;
  padding: 0;
  overflow: hidden;
}

.legendary-dialog.legendary-dialog--immersive {
  background: #050404;
  border: 0;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  max-height: none;
  display: flex;
  overflow: hidden;
}

.legendary-dialog--immersive .legendary-dialog-header {
  padding: max(10px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left));
  background: #100d0b;
  flex-shrink: 0;
}

.legendary-dialog--immersive .legendary-dialog-header h2 {
  margin-top: 3px;
  font-size: 1.45rem;
}

.legendary-dialog--immersive .legendary-dialog-art-status {
  display: none;
}

@media (max-width: 560px) {
  .legendary-dialog-header {
    gap: 10px;
  }

  .legendary-dialog-actions {
    gap: 6px;
  }

  .legendary-dialog-view-mode {
    padding: 8px 10px;
    font-size: 15px;
  }

  .legendary-dialog-view-mode > [data-view-mode-icon] {
    display: none;
  }

  .legendary-dialog-header .legendary-dialog-title h2 {
    font-size: 1.2rem;
  }

  .legendary-dialog--immersive .legendary-dialog-title h2 {
    overflow-wrap: anywhere;
  }

  .legendary-dialog--immersive .legendary-eyebrow {
    font-size: .875rem;
  }
}

.legendary-dialog-art-status {
  color: #c2ac88;
  background: #a6813210;
  border-bottom: 1px solid #b7965930;
  padding: 12px 25px;
  font-size: .875rem;
  line-height: 1.65;
}

.legendary-dialog-state {
  text-align: center;
  color: #d4c0a2;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-height: 340px;
  padding: 50px 25px;
  line-height: 1.8;
  display: flex;
}

.legendary-dialog-state p {
  max-width: 560px;
}

.legendary-dialog-state a {
  color: #dec27e;
  font-size: .875rem;
}

.legendary-loading-star {
  color: var(--lc-gold);
  font-size: 2.6rem;
}

@media (max-width: 1000px) {
  .legendary-shell {
    width: calc(100% - 48px);
    padding-top: 130px;
  }

  .legendary-header {
    gap: 20px;
    padding-inline: 12px;
  }

  .legendary-seal {
    width: 180px;
  }

  .legendary-seal-emblem {
    width: 160px;
  }

  .legendary-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
  }

  .legendary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .legendary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .legendary-shell {
    width: calc(100% - 32px);
    padding-top: 118px;
  }

  .legendary-header {
    gap: 8px;
    padding: 0 0 26px;
  }

  .legendary-heading-copy {
    min-width: 0;
  }

  .legendary-header h1 {
    margin: 12px 0 16px;
    font-size: clamp(2.8rem, 11.5vw, 4.4rem);
  }

  .legendary-header h1 > span {
    display: block;
  }

  .legendary-eyebrow {
    letter-spacing: .1em;
    font-size: .66rem;
  }

  .legendary-intro {
    font-size: .78rem;
    line-height: 1.7;
  }

  .legendary-text-link {
    font-size: .76rem;
  }

  .legendary-seal {
    width: 114px;
    margin-top: 0;
  }

  .legendary-seal-emblem {
    width: 114px;
  }

  .legendary-seal > span {
    letter-spacing: .07em;
    max-width: 100px;
    font-size: .67rem;
    line-height: 1.6;
  }

  .legendary-seal > small {
    max-width: 105px;
    font-size: .6rem;
    line-height: 1.7;
  }

  .legendary-art-note {
    gap: 10px;
    margin: 22px 0;
    padding: 0;
  }

  .legendary-art-note p {
    font-size: .75rem;
  }

  .legendary-note-icon {
    font-size: 1.4rem;
  }

  .legendary-sample-shortcuts {
    gap: 8px;
  }

  .legendary-sample-shortcuts > span {
    flex-basis: 100%;
  }

  .legendary-sample-shortcuts button {
    gap: 10px;
    padding: 10px 16px;
    font-size: .8rem;
  }

  .legendary-filter-panel {
    padding: 0 0 12px;
  }

  .legendary-chapter {
    gap: 8px;
    margin-bottom: 20px;
  }

  .legendary-chapter h2 {
    font-size: 1.5rem;
  }

  .legendary-toolbar {
    gap: 18px 14px;
  }

  .legendary-toolbar .legendary-search {
    grid-column: 1 / -1;
  }

  .legendary-toolbar label:nth-child(3) {
    grid-area: 3 / 1 / auto / -1;
  }

  .legendary-toolbar label > span {
    margin-bottom: 6px;
    font-size: .74rem;
  }

  .legendary-toolbar input, .legendary-toolbar select {
    font-size: .82rem;
  }

  .legendary-filter-footer p {
    font-size: .7rem;
  }

  .legendary-filter-footer > .legendary-label {
    display: none;
  }

  .legendary-filter-footer button {
    white-space: nowrap;
    min-width: 125px;
    padding-inline: 16px;
  }

  .legendary-results-bar {
    margin: 24px 2px 20px;
    font-size: .76rem;
  }

  .legendary-results-bar > .legendary-label {
    display: none;
  }

  .legendary-grid {
    gap: 30px 18px;
    padding: 0;
  }

  .legendary-tile-action {
    margin-inline: 0;
    font-size: .83rem;
  }

  .legendary-notice {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-right: 6px;
    font-size: .73rem;
  }

  .legendary-dialog-backdrop {
    padding: 0;
    display: block;
  }

  .legendary-dialog {
    border: 0;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
  }

  .legendary-dialog-header {
    padding: 14px 16px;
    position: sticky;
    top: 0;
  }

  .legendary-dialog-header h2 {
    font-size: 1.55rem;
  }

  .legendary-dialog-header .legendary-eyebrow {
    font-size: .875rem;
  }

  .legendary-dialog-art-status {
    padding: 10px 16px;
    font-size: .875rem;
  }

  .legendary-footer {
    margin-top: 45px;
  }

  .legendary-footer p > span {
    max-width: 310px;
    margin-top: 5px;
    font-size: .7rem;
    display: block;
  }
}

@media (max-width: 540px) {
  .legendary-header {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 14px 16px;
    display: grid;
  }

  .legendary-heading-copy {
    display: contents;
  }

  .legendary-header .legendary-eyebrow {
    grid-column: 1 / -1;
  }

  .legendary-header h1 {
    grid-area: 2 / 1;
    align-self: center;
    margin: 0;
    font-size: clamp(2.15rem, 10vw, 3.3rem);
  }

  .legendary-header .legendary-intro {
    grid-column: 1 / -1;
    margin: 0;
  }

  .legendary-header .legendary-text-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .legendary-seal {
    grid-area: 2 / 2;
    width: 96px;
  }

  .legendary-seal-emblem {
    width: 96px;
  }

  .legendary-seal > span {
    font-size: .6rem;
  }

  .legendary-seal > small {
    font-size: .57rem;
  }

  .legendary-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 370px;
    margin-inline: auto;
  }

  .legendary-tile-heading {
    padding: 20px 22px;
    font-size: .9rem;
  }

  .legendary-tile h2 {
    font-size: 1.9rem;
  }

  .legendary-stars {
    letter-spacing: .1em;
    font-size: 1.2rem;
  }

  .legendary-tile-status {
    font-size: .72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legendary-page *, .legendary-dialog-backdrop * {
    scroll-behavior: auto !important;
  }

  .legendary-tile-stage, .legendary-tile-flipper, .legendary-tile-frame, .legendary-tile-foil, .legendary-sample-shortcuts button, .legendary-load-more button {
    transition: none;
  }

  .legendary-tile:hover .legendary-tile-stage, .legendary-sample-shortcuts button:hover {
    transform: none;
  }
}

.legendary-page, .legendary-dialog-backdrop {
  --lc-label: "Special Elite", system-ui;
  --lc-heading: "Metal Mania", fantasy;
  font-family: var(--lc-copy);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.legendary-shell, .legendary-dialog {
  overflow-wrap: anywhere;
}

.legendary-shell :where(button, input, select, textarea, code), .legendary-dialog :where(button, input, select, textarea, code) {
  font-family: var(--lc-copy);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.legendary-shell :is(strong, b), .legendary-dialog :is(strong, b) {
  font-weight: 400;
}

.legendary-shell :is(h1, h2, h3, h4, h5, h6), .legendary-dialog :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--lc-heading);
  font-weight: 400;
  line-height: 1.2;
}

.legendary-eyebrow {
  font-family: var(--lc-label);
  letter-spacing: normal;
  font-size: .875rem;
  font-weight: normal;
  line-height: 1.5;
}

.legendary-header h1 {
  letter-spacing: normal;
  font-family: Metal Mania, fantasy;
  font-size: clamp(3.6rem, 6.3vw, 6.4rem);
  font-weight: 400;
  line-height: .99;
}

.legendary-intro {
  font-size: 1rem;
  line-height: 1.85;
}

.legendary-text-link {
  font-size: .875rem;
}

.legendary-seal:after {
  font-size: 1.5rem;
}

.legendary-seal > span {
  font-family: var(--lc-label);
  letter-spacing: normal;
  font-size: .875rem;
}

.legendary-seal .legendary-seal-top {
  letter-spacing: normal;
  font-size: .875rem;
}

.legendary-seal > strong {
  font-size: 4.8rem;
  font-weight: normal;
  line-height: 1.12;
}

.legendary-seal > small {
  font-size: .875rem;
}

.legendary-note-icon {
  font-size: 1.8rem;
}

.legendary-art-note p {
  font-size: .875rem;
  line-height: 1.7;
}

.legendary-art-note strong {
  font-weight: normal;
}

.legendary-sample-shortcuts > span {
  font-family: var(--lc-label);
  letter-spacing: normal;
  font-size: .875rem;
}

.legendary-sample-shortcuts button {
  font-family: var(--lc-copy);
  font-size: .875rem;
}

.legendary-toolbar label > span {
  font-family: var(--lc-label);
  letter-spacing: normal;
  font-size: .875rem;
}

.legendary-toolbar input, .legendary-toolbar select {
  font-family: var(--lc-copy);
  font-size: 1rem;
}

.legendary-filter-footer p {
  font-size: .875rem;
  line-height: 1.5;
}

.legendary-filter-footer button {
  font-family: var(--lc-copy);
  font-size: .875rem;
}

.legendary-label {
  font-family: var(--lc-label);
  letter-spacing: normal;
  font-size: .875rem;
}

.legendary-notice {
  font-size: .875rem;
  line-height: 1.7;
}

.legendary-catalog-time {
  font-size: .875rem;
  line-height: 1.6;
}

.legendary-notice button, .legendary-dialog-state button {
  font-family: var(--lc-copy);
  font-size: .875rem;
}

.legendary-results-bar {
  font-size: .875rem;
  line-height: 1.6;
}

.legendary-results-bar strong {
  font-family: var(--lc-label);
  font-size: 1.1rem;
  font-weight: normal;
}

.legendary-previous-note {
  font-size: .875rem;
  line-height: 1.6;
}

.legendary-tile {
  font-family: var(--lc-copy);
}

.legendary-tile-heading {
  font-family: var(--lc-label);
  letter-spacing: normal;
  font-size: .875rem;
}

.legendary-tile-image-unavailable {
  font-size: .875rem;
  line-height: 1.8;
}

.legendary-tile-image-unavailable > span:first-child {
  font-size: 2rem;
}

.legendary-stars {
  letter-spacing: .1em;
  font-family: system-ui, sans-serif;
  font-size: clamp(.83rem, 1.15vw, 1.14rem);
  line-height: 1.35;
}

.legendary-tile h2 {
  font-family: var(--lc-heading);
  overflow-wrap: anywhere;
  font-size: clamp(1.1rem, 1.8vw, 1.7rem);
  font-weight: 400;
  line-height: 1.2;
}

.legendary-tile-status {
  font-family: var(--lc-label);
  letter-spacing: normal;
  font-size: .875rem;
  line-height: 1.5;
}

.legendary-tile-action {
  font-size: .875rem;
}

.legendary-empty > span {
  font-size: 3rem;
}

.legendary-empty h2 {
  font-family: var(--lc-heading);
  font-size: 1.65rem;
  font-weight: 400;
}

.legendary-empty p {
  font-size: .875rem;
  line-height: 1.8;
}

.legendary-load-more button {
  font-family: var(--lc-copy);
  font-size: 1rem;
}

.legendary-footer p {
  font-size: .875rem;
  line-height: 2;
}

.legendary-footer p > span {
  font-size: .875rem;
}

.legendary-dialog-header .legendary-eyebrow {
  font-family: Staatliches, sans-serif;
  font-size: .875rem;
  font-weight: 400;
}

.legendary-dialog-header h2 {
  font-family: Metal Mania, fantasy;
  font-size: 1.9rem;
  font-weight: normal;
  line-height: 1.1;
}

.legendary-dialog-close {
  font-size: 1.75rem;
}

.legendary-dialog--immersive .legendary-dialog-header h2 {
  font-size: 1.45rem;
}

.legendary-dialog--immersive .legendary-dialog-header .legendary-eyebrow {
  font-size: .875rem;
}

@media (max-width: 560px) {
  .legendary-dialog-view-mode {
    font-size: 15px;
  }

  .legendary-dialog-header .legendary-dialog-title h2 {
    font-size: 1.2rem;
  }

  .legendary-dialog--immersive .legendary-dialog-title h2 {
    overflow-wrap: anywhere;
  }

  .legendary-dialog--immersive .legendary-eyebrow {
    font-size: .875rem;
  }
}

.legendary-dialog-art-status {
  font-size: .875rem;
  line-height: 1.65;
}

.legendary-dialog-state {
  line-height: 1.8;
}

.legendary-dialog-state a {
  font-size: .875rem;
}

.legendary-loading-star {
  font-size: 2.6rem;
}

@media (max-width: 1100px) {
  .legendary-seal > strong {
    font-size: 3.6rem;
  }

  .legendary-seal > span {
    font-size: .875rem;
  }

  .legendary-stars {
    letter-spacing: .08em;
    font-size: 1rem;
  }
}

@media (max-width: 680px) {
  .legendary-header h1 {
    font-size: clamp(3rem, 12vw, 4.7rem);
  }

  .legendary-eyebrow {
    letter-spacing: normal;
    font-size: .875rem;
  }

  .legendary-intro {
    font-size: 1rem;
    line-height: 1.7;
  }

  .legendary-text-link {
    font-size: .875rem;
  }

  .legendary-seal > strong {
    font-size: 2.35rem;
  }

  .legendary-seal > span, .legendary-seal .legendary-seal-top {
    letter-spacing: normal;
    font-size: .875rem;
  }

  .legendary-seal > small {
    font-size: .875rem;
  }

  .legendary-seal:after {
    font-size: 1rem;
  }

  .legendary-art-note p, .legendary-sample-shortcuts button, .legendary-toolbar label > span {
    font-size: .875rem;
  }

  .legendary-toolbar input, .legendary-toolbar select {
    font-size: 1rem;
  }

  .legendary-filter-footer p, .legendary-filter-footer button, .legendary-results-bar, .legendary-tile-heading {
    font-size: .875rem;
  }

  .legendary-tile h2 {
    font-size: 1.17rem;
  }

  .legendary-stars {
    letter-spacing: .06em;
    font-size: clamp(.875rem, 2.9vw, .92rem);
  }

  .legendary-tile-status {
    letter-spacing: normal;
    font-size: .875rem;
  }

  .legendary-tile-action, .legendary-notice {
    font-size: .875rem;
  }

  .legendary-dialog-header h2 {
    font-size: 1.55rem;
  }

  .legendary-dialog-header .legendary-eyebrow, .legendary-dialog-art-status, .legendary-footer p > span {
    font-size: .875rem;
  }
}

@media (max-width: 480px) {
  .legendary-tile h2 {
    font-size: 1.6rem;
  }
}

html:not([lang="en"]) .legendary-tile :is(.legendary-tile-status, .legendary-tile-action) {
  font-family: var(--locale-ui-font);
  letter-spacing: normal;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.legendary-mobile-disclosure {
  --ds-action-display: none;
  display: none;
}

.legendary-mobile-star-note {
  display: none;
}

.legendary-refinements {
  display: contents;
}

@media (max-width: 680px) {
  .legendary-shell {
    padding-top: 92px;
  }

  .legendary-header {
    grid-template-columns: minmax(0, 1fr) 68px;
    gap: 8px 12px;
    padding: 0 0 12px;
    display: grid;
  }

  .legendary-heading-copy {
    display: contents;
  }

  .legendary-header .legendary-eyebrow {
    grid-column: 1 / -1;
    font-size: 12px;
  }

  .legendary-header h1 {
    grid-area: 2 / 1;
    margin: 0;
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.05;
  }

  .legendary-header h1 > span {
    display: inline;
  }

  .legendary-header .legendary-intro {
    display: none;
  }

  .legendary-header .legendary-text-link {
    grid-column: 1 / -1;
    min-height: 44px;
  }

  .legendary-header .legendary-seal {
    grid-area: 2 / 2;
    align-self: center;
    width: 68px;
    margin: 0;
  }

  .legendary-seal-emblem {
    width: 68px;
  }

  .legendary-seal > span, .legendary-seal > small {
    display: none;
  }

  .legendary-mobile-disclosure {
    --ds-action-display: inline-flex;
    border: 1px solid var(--lc-line);
    min-width: 44px;
    min-height: 44px;
    color: var(--lc-cream);
    cursor: pointer;
    touch-action: manipulation;
    background: #33241fd9;
    border-radius: 8px;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    display: inline-flex;
  }

  .legendary-mobile-disclosure:focus-visible {
    outline: 2px solid var(--lc-gold);
    outline-offset: 3px;
  }

  .legendary-mobile-disclosure:active {
    background: #60452b;
  }

  .legendary-about-toggle {
    width: 100%;
    color: var(--lc-muted);
    background: none;
    border-color: #0000;
    margin: 8px 0;
    padding-inline: 0;
    font-size: 14px;
  }

  .legendary-about-toggle > span:last-child {
    padding-inline: 12px;
    font-size: 20px;
  }

  .legendary-collection-info .legendary-art-note {
    display: none;
  }

  .legendary-collection-info[data-expanded="true"] .legendary-art-note {
    margin: 4px 0 20px;
    display: flex;
  }

  .legendary-art-note .legendary-mobile-star-note {
    color: var(--lc-gold);
    margin-top: 12px;
    display: block;
  }

  .legendary-chapter {
    display: none;
  }

  .legendary-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
  }

  .legendary-toolbar .legendary-search {
    grid-column: 1;
  }

  .legendary-search > span {
    clip-path: inset(50%);
    white-space: nowrap;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }

  .legendary-filter-toggle {
    grid-column: 2;
    height: 50px;
  }

  .legendary-filter-count {
    background: var(--lc-gold);
    color: #281d1c;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    min-width: 22px;
    height: 22px;
    font-family: system-ui, sans-serif;
    font-size: 13px;
    display: inline-flex;
  }

  .legendary-refinements {
    display: none;
  }

  .legendary-refinements[data-expanded="true"] {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 12px 0 4px;
    display: grid;
  }

  .legendary-refinements label:nth-child(2) {
    grid-area: 2 / 1 / auto / -1;
  }

  .legendary-refinements label:nth-child(3) {
    grid-area: 1 / 2;
  }

  .legendary-filter-panel {
    padding-bottom: 0;
  }

  .legendary-filter-footer {
    display: none;
  }

  .legendary-filter-footer[data-active="true"] {
    justify-content: flex-end;
    min-height: 44px;
    padding-top: 8px;
    display: flex;
  }

  .legendary-filter-footer p {
    display: none;
  }

  .legendary-catalog-time {
    margin-top: 12px;
    font-size: 12px;
  }

  .legendary-results-bar {
    margin: 12px 0 16px;
  }
}

