.card-price-page {
  background: #0b1016;
  color: #eaf0f5;
}

.card-price-page[data-card-game="pokemon"] {
  --card-data-accent: #f2c94c;
  --card-data-accent-soft: rgb(242 201 76 / 13%);
  --card-data-accent-border: rgb(242 201 76 / 46%);
}

.card-price-page[data-card-game="riftbound"] {
  --card-data-accent: #9c8cff;
  --card-data-accent-soft: rgb(156 140 255 / 13%);
  --card-data-accent-border: rgb(156 140 255 / 46%);
}

.card-page-main {
  width: min(1180px, calc(100% - 24px));
  max-width: 1180px;
  padding-block: 28px 72px;
}

.card-price-page .card:hover,
.card-price-page .card:focus-within {
  transform: none;
  box-shadow: var(--shadow);
}

.card-price-page
  :is(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid #f2bd49;
  outline-offset: 3px;
}

.card-page-preview {
  margin-bottom: 16px;
  border: 1px solid #d3a73c;
  border-radius: 10px;
  padding: 10px 14px;
  background: #30240d;
  color: #ffe3a0;
}

.card-page-error {
  max-width: 760px;
  margin-inline: auto;
}

.card-page-error h1 {
  margin-top: 4px;
}

.card-page-navigation {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.card-back-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  border: 1px solid #ffe6a0;
  border-radius: 999px;
  padding: 8px 17px 8px 9px;
  background: linear-gradient(135deg, #f6d77c, #dca83d);
  box-shadow: 0 8px 22px rgb(242 189 73 / 24%);
  color: #111820;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease;
}

.card-back-link__icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: rgb(11 16 22 / 18%);
  font-size: 1.15rem;
}

.card-back-link:hover,
.card-back-link:focus-visible {
  color: #090d12;
  filter: brightness(1.06);
  box-shadow: 0 11px 28px rgb(242 189 73 / 36%);
  text-decoration: none;
  transform: translateY(-2px);
}

.card-back-link:active {
  box-shadow: 0 5px 14px rgb(242 189 73 / 24%);
  transform: translateY(0);
}

.card-page-navigator {
  margin-bottom: 20px;
}

.card-page-navigator__details {
  border: 0;
  border-radius: 0;
  padding: 8px 8px 12px;
  overflow: visible;
  background: transparent;
}

.card-page-navigator__details > summary {
  display: none;
}

.card-page-navigator__heading {
  margin-bottom: 14px;
}

.card-page-navigator__heading h2 {
  margin: 2px 0 0;
  font-size: 1.25rem;
}

.card-page-navigator__controls {
  display: grid;
  grid-template-columns:
    minmax(150px, 0.8fr) minmax(220px, 1.3fr) minmax(280px, 1.8fr)
    auto;
  gap: 12px;
  align-items: end;
}

.card-page-navigator__controls label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #aebbc7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-page-navigator__controls select {
  width: 100%;
  min-width: 0;
  color: #eaf0f5;
  letter-spacing: normal;
  text-transform: none;
}

.card-page-navigator__controls .btn {
  min-width: 120px;
  white-space: nowrap;
}

.card-page-navigator__status {
  min-height: 1.35em;
  margin: 10px 0 0;
  color: #aebbc7;
  font-size: 0.82rem;
}

.card-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.card-detail > *,
.card-detail__hero > *,
.card-price-section,
.card-association-section {
  min-width: 0;
}

.card-detail__hero {
  display: grid;
  grid-template-columns: minmax(230px, 330px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.card-detail__hero.card-detail__hero--image-free {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
}

.card-detail__hero--image-free::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-data-accent), transparent 78%);
  content: "";
}

.card-detail__data-mode {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--card-data-accent-border);
  border-radius: 12px;
  padding: 13px 15px;
  background: linear-gradient(
    120deg,
    var(--card-data-accent-soft),
    rgb(15 24 33 / 72%) 68%
  );
}

.card-detail__data-mode-copy {
  display: grid;
  gap: 2px;
}

.card-detail__data-mode-copy > span {
  color: var(--card-data-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-detail__data-mode-copy strong {
  color: #f5f8fa;
  font-size: 1.08rem;
}

.card-detail__data-mode-copy small {
  color: #b5c2cc;
  font-size: 0.82rem;
}

.card-detail__data-mode-badge {
  flex: 0 0 auto;
  border: 1px solid var(--card-data-accent-border);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgb(7 13 19 / 56%);
  color: #e6edf2;
  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
}

.card-detail__image-wrap {
  margin: 0;
}

.card-detail__image-button {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  color: #fff;
  line-height: 1;
}

.card-detail__image-button:hover,
.card-detail__image-button:focus-visible {
  transform: none;
  filter: brightness(1.04);
  box-shadow: 0 0 0 3px rgb(242 189 73 / 48%);
}

.card-detail__image-button > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgb(7 12 18 / 86%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.card-detail__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgb(0 0 0 / 35%);
}

.card-detail__summary h1 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.02;
}

.card-detail__summary .btn {
  height: auto;
  min-height: var(--ctrl-h);
  padding-block: 10px;
  line-height: 1.25;
  text-align: center;
}

.card-detail__subtitle {
  margin-bottom: 12px;
  color: #c4d1db;
  font-size: 1.05rem;
}

.card-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.card-detail__badges span {
  border: 1px solid #44586a;
  border-radius: 999px;
  padding: 5px 10px;
  background: #111a23;
  color: #dbe7ef;
  font-size: 0.86rem;
}

.card-headline-prices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
}

.card-headline-prices div {
  min-width: 0;
  border: 1px solid #354a5c;
  border-radius: 10px;
  padding: 9px 10px;
  background: linear-gradient(145deg, #152231, #101820);
}

.card-headline-prices dt {
  color: #9fb0bd;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-headline-prices dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: #f4d58f;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.card-image-dialog {
  width: min(92vw, 620px);
  max-height: 94vh;
  padding: 16px;
  border: 1px solid #44586a;
  border-radius: 16px;
  background: #0d151e;
  color: #eef4f8;
  box-shadow: 0 28px 90px rgb(0 0 0 / 70%);
}

.card-image-dialog::backdrop {
  background: rgb(0 0 0 / 78%);
  backdrop-filter: blur(4px);
}

.card-image-dialog img {
  display: block;
  width: min(100%, 488px);
  height: auto;
  margin: 14px auto 0;
  border-radius: 16px;
}

.card-detail__rules {
  border-left: 3px solid #b98b36;
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  background: #111820;
}

.card-detail__rules p {
  margin: 0;
}

.card-detail__rules p + p {
  margin-top: 10px;
}

.card-detail__type-line {
  color: #f2d18f;
  font-weight: 700;
}

.card-detail__mana,
.card-detail__credit {
  color: #aebbc7;
  font-size: 0.9rem;
}

.card-detail__rules-text {
  line-height: 1.55;
}

.card-detail__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.card-detail__facts div {
  border: 1px solid #314150;
  border-radius: 10px;
  padding: 12px;
  background: #121a22;
}

.card-detail__facts dt,
.card-printing-nav span,
.card-technical-details dt {
  display: block;
  color: #93a6b7;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-detail__facts dd,
.card-technical-details dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.card-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
}

.card-section-heading h2 {
  margin: 2px 0 0;
}

.card-section-heading > p {
  max-width: 460px;
  margin-top: 4px;
  color: #aebbc7;
}

.card-data-unavailable {
  border-left: 3px solid #637687;
  border-radius: 0 8px 8px 0;
  padding: 11px 13px;
  background: #111a23;
  color: #c5d0d8;
}

.card-price-forecast {
  margin: 18px 0 22px;
  overflow: hidden;
  border: 1px solid #365a72;
  border-radius: 14px;
  background: linear-gradient(145deg, rgb(19 38 51 / 96%), rgb(13 24 34 / 98%));
}

.card-price-forecast__heading,
.card-price-forecast__item header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.card-price-forecast__heading {
  padding: 18px 20px;
  border-bottom: 1px solid #365064;
}

.card-price-forecast__heading h3,
.card-price-forecast__item h4 {
  margin: 2px 0 0;
}

.card-price-forecast__item header p {
  margin: 3px 0 0;
  color: #9fb0bd;
  font-size: 0.82rem;
}

.card-price-forecast__status,
.card-price-forecast__item header span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #243f52;
  color: #d4e7f4;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.card-price-forecast__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.card-price-forecast__item {
  min-width: 0;
  padding: clamp(18px, 3vw, 26px);
}

.card-price-forecast__item + .card-price-forecast__item {
  border-top: 1px solid #365064;
}

.card-price-forecast__visual {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
  margin-top: 18px;
}

.card-price-forecast__copy {
  min-width: 0;
}

.card-price-forecast__label,
.card-price-forecast__target,
.card-price-forecast__legend {
  margin: 0;
  color: #9fb0bd;
  font-size: 0.82rem;
}

.card-price-forecast__estimate {
  display: block;
  margin-top: 3px;
  color: #edf5fa;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.card-price-forecast__delta {
  margin: 7px 0 14px;
  font-size: 0.92rem;
  font-weight: 700;
}

.card-price-forecast__item--up .card-price-forecast__delta {
  color: #72d9a6;
}

.card-price-forecast__item--down .card-price-forecast__delta {
  color: #f29393;
}

.card-price-forecast__item--steady .card-price-forecast__delta {
  color: #e5cb88;
}

.card-price-forecast__target {
  margin-top: 0;
}

.card-price-forecast__legend {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin-top: 17px;
}

.card-price-forecast__legend i {
  flex: 0 0 auto;
  width: 18px;
  height: 10px;
  margin-top: 3px;
  background: rgb(115 151 173 / 48%);
}

.card-price-forecast__chart {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  overflow: visible;
}

.card-price-forecast__chart text {
  fill: #9fb0bd;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}

.card-price-forecast__chart-frame {
  fill: #0a141d;
  stroke: #365064;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.card-price-forecast__chart-grid {
  stroke: #344b5d;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.card-price-forecast__chart-axis-title {
  font-size: 14px !important;
}

.card-price-forecast__chart-band {
  fill: #7397ad;
  opacity: 0.38;
}

.card-price-forecast__chart-guide {
  stroke: #698092;
  stroke-width: 1;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke;
}

.card-price-forecast__chart-trend {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.card-price-forecast__item--up .card-price-forecast__chart-trend,
.card-price-forecast__item--up .card-price-forecast__chart-point--target {
  stroke: #55c98e;
}

.card-price-forecast__item--down .card-price-forecast__chart-trend,
.card-price-forecast__item--down .card-price-forecast__chart-point--target {
  stroke: #ef7777;
}

.card-price-forecast__item--steady .card-price-forecast__chart-trend,
.card-price-forecast__item--steady .card-price-forecast__chart-point--target {
  stroke: #d9bb69;
}

.card-price-forecast__chart-point {
  fill: #101b25;
  stroke: #d7e2e9;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.card-price-forecast__chart-value {
  fill: #edf5fa !important;
  font-size: 16px !important;
  font-weight: 700;
}

.card-price-forecast__chart-range-value {
  fill: #d4e7f4 !important;
  font-weight: 700;
}

.card-price-forecast__details {
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0 20px 18px;
  background: transparent;
  color: #aebdc8;
  font-size: 0.84rem;
}

.card-price-forecast__details summary {
  padding: 10px 0;
  cursor: pointer;
  color: #c9d7e1;
  font-weight: 700;
}

.card-price-forecast__disclosure,
.card-price-forecast__warning {
  margin: 0;
  padding: 0 20px 14px;
  color: #aebdc8;
  font-size: 0.84rem;
}

.card-price-forecast__warning {
  color: #f1ca78;
}

.card-price-forecast__details .card-price-forecast__disclosure {
  margin-top: 8px;
  padding: 0;
}

.table-scroll {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  overscroll-behavior-inline: contain;
  scrollbar-color: #526577 #111820;
}

.table-scroll-hint {
  display: none;
}

.card-price-mobile-list {
  display: none;
}

.card-price-table-details > summary {
  display: none;
}

.card-price-mobile-card {
  border: 1px solid #35495a;
  border-radius: 12px;
  padding: 13px;
  background: linear-gradient(145deg, #162230, #101720);
}

.card-price-mobile-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.card-price-mobile-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.card-price-mobile-card header span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #243548;
  color: #cfe1ee;
  font-size: 0.76rem;
  font-weight: 700;
}

.card-price-mobile-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.card-price-mobile-card dl div {
  min-width: 0;
  border-radius: 8px;
  padding: 8px;
  background: rgb(7 13 20 / 56%);
}

.card-price-mobile-card dt {
  color: #9dafbc;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.card-price-mobile-card dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: #f3d48f;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.card-price-mobile-card > p {
  margin: 10px 0 0;
  color: #9dafbc;
  font-size: 0.74rem;
}

.card-buy-link {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 11px;
  border: 1px solid #5d7890;
  border-radius: 8px;
  padding: 8px 10px;
  background: rgb(35 58 78 / 72%);
  font-weight: 800;
  text-align: center;
}

.card-buy-link:hover {
  border-color: #58c6ff;
  background: #1a3447;
}

.card-marketplace-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
}

.table-scroll:focus-visible {
  border-radius: 8px;
}

.card-price-page table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.card-price-page th,
.card-price-page td {
  border-bottom: 1px solid #2e3d4a;
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

.card-price-page thead th {
  padding-block: 8px;
  vertical-align: middle;
}

/* Keep sortable headings from inheriting the site's gold CTA button chrome. */
.card-price-page .tev-sort-button,
.card-price-page .tev-sort-button:hover,
.card-price-page .tev-sort-button:focus-visible {
  height: auto;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: inherit;
  filter: none;
  transform: none;
}

.card-price-page tbody tr:hover {
  background: rgb(88 198 255 / 6%);
}

.card-price-page caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.card-price-table td:nth-last-child(-n + 2) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.card-price-table__marketplace {
  width: 23%;
  background: rgb(31 42 56 / 58%);
}

.card-price-table__finish {
  width: 17%;
  color: #cbd6df;
  font-weight: 700;
}

.card-price-page
  :is(
    .card-price-table__finish-heading,
    .card-price-table__finish,
    .card-price-table__basis-heading,
    .card-price-table__basis
  ) {
  text-align: left;
}

.card-price-table tbody + tbody tr:first-child > * {
  border-top: 2px solid #526577;
}

.card-price-table__finish[rowspan] {
  border-left: 1px solid rgb(82 101 119 / 42%);
}

.card-price-table td:last-child {
  color: #d7eadf;
  font-weight: 700;
}

.card-fee-control {
  display: grid;
  grid-template-columns: minmax(210px, 320px) minmax(0, 1fr);
  gap: 8px 20px;
  align-items: center;
  margin-top: 18px;
}

.card-fee-control label {
  font-weight: 700;
}

.card-fee-control select {
  min-height: 44px;
}

.card-fee-control p {
  grid-column: 1 / -1;
  margin: 0;
  color: #aebbc7;
}

.card-price-explainer,
.card-history-table,
.card-technical-details {
  margin-top: 18px;
}

.card-price-page details > summary {
  width: fit-content;
  cursor: pointer;
  color: #f2d18f;
  font-weight: 700;
}

.card-price-page details[open] > summary {
  margin-bottom: 12px;
}

.card-price-explainer p,
.card-technical-details > p {
  color: #b7c3cd;
}

.card-history-visual {
  border: 1px solid #2e3d4a;
  border-radius: 12px;
  padding: 10px;
  background: #101820;
}

.card-history-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.card-history-summary div {
  border: 1px solid #2e3d4a;
  border-radius: 10px;
  padding: 10px 12px;
  background: #111923;
}

.card-history-summary dt {
  color: #9eafbc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-history-summary dd {
  margin: 4px 0 0;
  color: #f4f7f9;
  font-weight: 700;
}

.card-history-analytics {
  margin: 0 0 14px;
}

.card-history-analytics h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.card-history-analytics table {
  min-width: 760px;
}

.card-history-marketplace-control {
  display: grid;
  grid-template-columns: auto minmax(190px, 280px) minmax(220px, 1fr);
  gap: 8px 12px;
  align-items: center;
  margin: 0 0 14px;
  border: 1px solid #2e3d4a;
  border-radius: 10px;
  padding: 10px 12px;
  background: #111923;
}

.card-history-marketplace-control label {
  color: #dce6ed;
  font-weight: 800;
}

.card-history-marketplace-control select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #456177;
  border-radius: 8px;
  padding: 7px 34px 7px 10px;
  background: #0d1720;
  color: #f5f8fa;
  font: inherit;
}

.card-history-marketplace-control p {
  margin: 0;
  color: #aebbc7;
  font-size: 0.85rem;
}

.card-history-affiliate-row {
  cursor: pointer;
}

.card-history-affiliate-row:focus-within {
  background: rgb(88 198 255 / 6%);
}

.card-history-affiliate-link {
  color: inherit;
  font-weight: inherit;
  text-decoration-color: rgb(88 198 255 / 65%);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.card-history-affiliate-link:hover,
.card-history-affiliate-link:focus-visible {
  color: #8dd9ff;
  text-decoration-color: currentcolor;
}

.card-price-change {
  font-weight: 800;
}

.card-price-change--up {
  color: #7ee2a8;
}

.card-price-change--down {
  color: #ff9f9f;
}

.card-price-change--flat {
  color: #cad4dc;
}

.card-history-range {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  width: min(100%, 292px);
  margin: 0 0 10px auto;
  border: 1px solid #354c5f;
  border-radius: 12px;
  padding: 4px;
  background: linear-gradient(180deg, #121e29, #0b141d);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 5%),
    0 6px 18px rgb(0 0 0 / 18%);
}

.card-history-range button {
  min-width: 0;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 12px;
  background: transparent;
  color: #b9c8d3;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.card-history-range button:hover:not([aria-pressed="true"]) {
  background: rgb(102 145 177 / 12%);
  color: #f4f8fb;
}

.card-history-range button:active {
  transform: translateY(1px);
}

.card-history-range button[aria-pressed="true"] {
  border-color: rgb(111 199 241 / 30%);
  background: linear-gradient(180deg, #397fa4, #286482);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 14%),
    0 3px 9px rgb(0 0 0 / 28%);
}

.card-history-range button:focus-visible {
  outline: 3px solid rgb(88 198 255 / 55%);
  outline-offset: 2px;
}

.card-history-chart {
  position: relative;
  min-height: 240px;
  border-radius: 8px;
  outline: none;
}

.card-history-chart:focus-visible {
  box-shadow: 0 0 0 3px rgb(88 198 255 / 42%);
}

.card-history-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.card-chart-axis {
  stroke: #758899;
  stroke-width: 1;
}

.card-chart-grid {
  stroke: #2d3b47;
  stroke-width: 1;
}

.card-chart-crosshair {
  stroke: #e7eef4;
  stroke-width: 1;
  stroke-dasharray: 4 4;
  pointer-events: none;
}

.card-chart-label {
  fill: #b8c4ce;
  font:
    14px Inter,
    sans-serif;
}

.card-history-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 4px 12px 10px 62px;
  color: #c9d4dc;
  font-size: 0.9rem;
}

.card-history-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.card-history-legend i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--card-series-color);
}

.card-history-tooltip {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: grid;
  gap: 3px;
  min-width: 156px;
  padding: 8px 10px;
  border: 1px solid #52697c;
  border-radius: 8px;
  background: rgb(8 14 21 / 94%);
  color: #eef5fa;
  box-shadow: 0 8px 24px rgb(0 0 0 / 35%);
  font-size: 0.82rem;
  pointer-events: none;
}

.card-history-tooltip[hidden] {
  display: none;
}

.card-history-tooltip span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card-history-instructions {
  margin: 2px 12px 8px 62px;
  color: #94a7b5;
  font-size: 0.82rem;
}

.card-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.card-history-actions :is(a, button) {
  min-height: 42px;
}

.card-alert-callout {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
  border: 1px solid #35536a;
  border-radius: 10px;
  padding: 14px;
  background: #101c27;
}

.card-alert-copy {
  min-width: 0;
  padding: 4px 2px;
}

.card-alert-callout h3,
.card-alert-callout p {
  margin: 0;
}

.card-alert-callout h3 {
  font-size: 1rem;
}

.card-alert-callout p {
  margin-top: 4px;
  color: #aebbc7;
  font-size: 0.88rem;
}

.card-alert-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-alert-product {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid #2f4658;
  border-radius: 9px;
  padding: 10px;
  background: #0d1721;
}

.card-alert-callout .card-alert-product__label {
  overflow-wrap: anywhere;
  color: #dce7ef;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.3;
}

.card-alert-product__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.card-alert-actions .btn {
  min-height: 42px;
  justify-content: center;
  width: 100%;
  padding-inline: 12px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.card-discovery-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.card-discovery-actions a {
  display: flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid #3b5265;
  border-radius: 9px;
  padding: 10px 12px;
  background: #111a24;
  font-weight: 750;
  line-height: 1.25;
}

.card-discovery-actions a:hover {
  border-color: #58c6ff;
  background: #152532;
}

.card-other-printings {
  margin-top: 18px;
}

.card-other-printings h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.card-other-printings ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-other-printings a {
  display: grid;
  gap: 2px;
  border: 1px solid #2e3d4a;
  border-radius: 8px;
  padding: 9px 11px;
  background: #101820;
}

.card-other-printings span {
  color: #aebbc7;
  font-size: 0.82rem;
}

.card-printing-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card-printing-nav > div:last-child {
  text-align: right;
}

.card-printing-nav a {
  display: inline-block;
  margin-top: 5px;
}

.card-technical-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.card-technical-details dl div {
  border: 1px solid #2e3d4a;
  border-radius: 8px;
  padding: 10px;
  background: #111820;
}

.page-intro > h1 {
  margin-top: 4px;
}

.card-collection-empty {
  margin-top: 24px;
  border: 1px solid #384b5c;
  border-radius: 12px;
  padding: 20px;
  background: #111820;
}

.card-collection-empty h2 {
  margin-top: 0;
}

.card-hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.card-hub-links a {
  border: 1px solid #546b7d;
  border-radius: 999px;
  padding: 8px 13px;
  text-decoration: none;
}

.card-hub-links a:hover {
  border-color: #f2bd49;
  color: #fff0c7;
}

.card-search-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-block: 24px 18px;
}

.card-search-filters > div {
  display: grid;
  gap: 6px;
}

.card-search-filters label,
.page-intro form > label {
  font-weight: 700;
}

.card-search-filters select,
.card-search-row input,
.card-search-row button {
  min-height: 46px;
}

.card-search-help {
  margin: 5px 0 0;
  color: #aebbc7;
  font-size: 0.9rem;
}

.card-search-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.card-search-row input {
  min-width: 0;
  flex: 1;
}

.card-search-row button {
  min-width: 112px;
}

.card-search-status {
  min-height: 1.5em;
  margin: 16px 0 6px;
  color: #b9c6d0;
}

.card-search-status--error {
  color: #ffb8b8;
}

[data-card-search-results][aria-busy="true"] {
  opacity: 0.65;
}

.card-search-results {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-search-results li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #2e3d4a;
  padding: 12px 0;
}

.card-search-results a {
  font-weight: 700;
}

.card-search-results span {
  color: #aebbc7;
  text-align: right;
}

@media (max-width: 820px) {
  .card-page-navigator__controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .card-page-navigator__controls label:nth-child(3) {
    grid-column: 1 / -1;
  }

  .card-page-navigator__controls .btn {
    grid-column: 1 / -1;
  }

  .card-detail__hero {
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
    gap: 24px;
  }

  .card-detail__image-wrap {
    width: 100%;
  }

  .card-detail__summary h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .card-headline-prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .card-price-forecast__heading,
  .card-price-forecast__item header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .card-price-forecast__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-price-forecast__visual {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-price-forecast__chart text {
    font-size: 22px;
  }

  .card-price-forecast__chart-value {
    font-size: 24px !important;
  }

  .card-price-forecast__chart-axis-title {
    font-size: 24px !important;
  }

  .card-price-forecast__chart-axis-title--price {
    display: none;
  }

  .card-price-forecast__chart-date--intermediate {
    display: none;
  }

  .card-history-marketplace-control {
    grid-template-columns: 1fr;
  }

  .card-page-main {
    padding-block: 18px 48px;
  }

  .card-page-navigator__details > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    min-height: 44px;
    cursor: pointer;
    list-style: none;
    color: #eaf0f5;
    font-weight: 800;
  }

  .card-page-navigator__details > summary::-webkit-details-marker {
    display: none;
  }

  .card-page-navigator__details > summary small {
    grid-column: 1;
    color: #aebbc7;
    font-size: 0.76rem;
    font-weight: 500;
  }

  .card-page-navigator__details > summary::after {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 30px;
    font-size: 1.5rem;
    line-height: 1;
    text-align: center;
    content: "+";
  }

  .card-page-navigator__details[open] > summary {
    margin-bottom: 14px;
    border-bottom: 1px solid #2e3d4a;
    padding-bottom: 12px;
  }

  .card-page-navigator__details[open] > summary::after {
    content: "−";
  }

  .card-page-navigator__heading {
    display: none;
  }

  .card-detail__image-wrap {
    width: 100%;
  }

  .card-detail__summary h1 {
    font-size: clamp(2rem, 7vw, 2.75rem);
  }

  .card-detail__summary .btn {
    width: 100%;
  }

  .card-section-heading,
  .card-fee-control {
    display: block;
  }

  .card-section-heading > p {
    margin-bottom: 0;
  }

  .card-price-mobile-list {
    display: grid;
    gap: 10px;
  }

  .card-price-table-details {
    margin-top: 14px;
  }

  .card-price-table-details > summary {
    display: list-item;
  }

  .card-fee-control select {
    width: 100%;
    margin-block: 7px 10px;
  }

  .card-detail__facts,
  .card-technical-details dl,
  .card-printing-nav,
  .card-discovery-actions,
  .card-search-filters {
    grid-template-columns: 1fr;
  }

  .card-alert-callout {
    grid-template-columns: 1fr;
  }

  .card-alert-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-history-legend {
    padding-left: 12px;
  }

  .card-history-analytics .table-scroll {
    overflow: visible;
    border: 0;
  }

  .card-history-analytics table,
  .card-history-analytics tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .card-history-analytics thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .card-history-analytics tbody {
    display: grid;
    gap: 10px;
  }

  .card-history-analytics tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    border: 1px solid #334657;
    border-radius: 10px;
    padding: 12px;
    background: #111923;
  }

  .card-history-analytics tbody tr > :first-child,
  .card-history-analytics tbody tr:nth-child(odd) > :first-child,
  .card-history-analytics tbody tr:hover > :first-child {
    position: static;
    z-index: auto;
    grid-column: 1 / -1;
    min-width: 0;
    border: 0;
    padding: 0 0 8px;
    background: transparent;
    box-shadow: none;
    color: #f6f8fa;
    font-size: 1rem;
  }

  .card-history-analytics td {
    display: grid;
    gap: 3px;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .card-history-analytics td::before {
    content: attr(data-label);
    color: #9eafbc;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .card-history-range {
    width: 100%;
    margin-left: 0;
  }

  .card-history-range button {
    flex: 1;
  }

  .table-scroll-hint {
    display: block;
    margin: 0 0 8px;
    color: #aebbc7;
    font-size: 0.85rem;
  }

  .table-scroll :is(thead, tbody) tr > :first-child {
    position: sticky;
    left: 0;
    box-shadow: 10px 0 14px -14px rgb(0 0 0 / 90%);
  }

  .table-scroll thead tr > :first-child {
    z-index: 4;
    background: #121a25;
  }

  .table-scroll tbody tr > :first-child {
    z-index: 3;
    background: #0f1621;
  }

  .table-scroll tbody tr:nth-child(odd) > :first-child {
    background: #151d29;
  }

  .table-scroll tbody tr:hover > :first-child {
    background: #172331;
  }

  .card-price-table tr > :first-child {
    min-width: 145px;
  }

  .table-scroll .card-price-table tbody tr > :first-child {
    position: static;
    z-index: auto;
    box-shadow: none;
  }

  .table-scroll .card-price-table tbody .card-price-table__marketplace {
    background: rgb(31 42 56 / 58%);
  }

  .card-association-table tr > :first-child {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
  }

  .card-printing-nav > div:last-child {
    text-align: left;
  }

  .card-search-row {
    display: grid;
  }

  .card-search-row button {
    width: 100%;
  }

  .card-search-results li {
    display: grid;
    gap: 4px;
  }

  .card-search-results span {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .card-price-forecast__chart text {
    font-size: 28px;
  }

  .card-price-forecast__chart-value {
    font-size: 30px !important;
  }

  .card-price-forecast__chart-axis-title {
    font-size: 28px !important;
  }
}

@media (max-width: 600px) {
  .card-detail__hero.card-detail__hero--image-free {
    grid-template-areas: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .card-detail__hero--image-free .card-detail__summary {
    display: block;
  }

  .card-detail__data-mode {
    display: grid;
    gap: 9px;
    justify-items: start;
    padding: 12px;
  }

  .card-detail__data-mode-badge {
    padding-block: 5px;
    white-space: normal;
  }

  .card-detail__hero {
    grid-template-areas:
      "image lead"
      "rules rules"
      "facts facts"
      "action action";
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 16px 14px;
  }

  .card-detail__image-wrap {
    grid-area: image;
  }

  .card-detail__summary {
    display: contents;
  }

  .card-detail__lead {
    grid-area: lead;
  }

  .card-detail__rules {
    grid-area: rules;
  }

  .card-detail__facts {
    grid-area: facts;
    margin: 0;
  }

  .card-detail__action {
    grid-area: action;
    margin: 0;
  }

  .card-detail__lead .section-kicker {
    font-size: 0.66rem;
  }

  .card-detail__summary h1 {
    margin-top: 2px;
    font-size: clamp(1.65rem, 8vw, 2.3rem);
  }

  .card-detail__subtitle {
    margin-bottom: 8px;
    font-size: 0.9rem;
  }

  .card-detail__badges {
    gap: 5px;
    margin-bottom: 10px;
  }

  .card-detail__badges span {
    padding: 4px 7px;
    font-size: 0.72rem;
  }

  .card-headline-prices {
    gap: 5px;
    margin-bottom: 0;
  }

  .card-headline-prices div {
    padding: 6px 7px;
  }

  .card-headline-prices dt {
    font-size: 0.6rem;
  }

  .card-headline-prices dd {
    font-size: 0.9rem;
  }
}

@media (max-width: 430px) {
  .card-alert-actions,
  .card-alert-product__buttons {
    grid-template-columns: 1fr;
  }

  .card-page-navigator__heading {
    display: grid;
    gap: 6px;
  }

  .card-page-navigator__controls {
    grid-template-columns: 1fr;
  }

  .card-page-navigator__controls label:nth-child(3),
  .card-page-navigator__controls .btn {
    grid-column: auto;
  }

  .card-hub-links {
    display: grid;
  }

  .card-hub-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .card-detail__hero {
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 12px;
  }
}
