:root {
  color-scheme: light;
  --ink: #2f2140;
  --muted: #746284;
  --line: #d9cbea;
  --panel: #fbf8ff;
  --panel-2: #f0e8f8;
  --page: #e8dcf3;
  --input: #fffaff;
  --primary: #8d5fc4;
  --primary-strong: #64369b;
  --green: #12835b;
  --red: #cc3d3d;
  --amber: #b76e00;
  --shadow: 0 18px 55px rgba(23, 32, 51, 0.08);
}

/* Refined minimal design */
body {
  background: var(--page);
}

.topbar {
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.brand-mark {
  width: 44px;
  height: 52px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  transform: none;
}

.brand-mark::after,
.hero::before,
.hero::after,
.search-panel::before,
.product-card::before,
.product-card::after,
.alarm::before {
  display: none;
}

.brand > span:last-child > strong,
.catalog-head h2 {
  text-transform: none;
}

.hero {
  min-height: 420px;
  padding: 56px 0 36px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 4.7vw, 4.25rem);
  line-height: 1.03;
}

.eyebrow {
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  background: var(--panel-2);
}

.hero-signals span {
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}

.search-panel,
.filter-strip,
.metrics,
.product-card,
.alarm,
.contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(74, 42, 105, 0.08);
}

.search-panel {
  padding: 22px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.search-row input,
.search-row button {
  border-width: 1px;
  box-shadow: none;
}

.image-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  background: var(--panel-2);
  color: var(--primary-strong);
}

.camera-icon {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.camera-icon::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 3px;
  width: 7px;
  height: 4px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.camera-icon::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.camera-icon.large {
  width: 32px;
  height: 24px;
}

.metrics {
  overflow: hidden;
  box-shadow: none;
}

.catalog-head {
  border-bottom: 1px solid var(--line);
}

.filter-strip,
.product-card {
  box-shadow: none;
}

.product-card {
  overflow: hidden;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  box-shadow: 0 14px 34px rgba(92, 52, 133, 0.13);
  transform: translateY(-2px);
}

.product-art,
.price-line,
.store-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: none;
}

.tag {
  border-radius: 999px;
}

.image-search-card {
  width: min(620px, calc(100vw - 32px));
}

.image-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 220px;
  gap: 5px;
  overflow: hidden;
  border: 1px dashed color-mix(in srgb, var(--primary) 52%, var(--line));
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--primary-strong);
}

.image-dropzone small {
  color: var(--muted);
}

.image-dropzone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  background: var(--panel-2);
}

.image-search-status {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.image-search-results {
  display: grid;
  gap: 8px;
}

.image-match {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
}

.image-match:hover {
  border-color: var(--primary);
  background: var(--panel-2);
}

.image-match-art {
  width: 48px;
  aspect-ratio: 4 / 5;
  border-radius: 5px;
  background: var(--art);
}

.image-match span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.image-match small,
.image-match em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

.image-match b {
  color: var(--primary-strong);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .search-row {
    grid-template-columns: 1fr 52px;
  }

  .search-row input {
    grid-column: 1 / -1;
  }

  .image-search-button {
    min-width: 52px;
    padding-inline: 0;
  }

  .image-search-button span:last-child {
    display: none;
  }

  .image-match {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .image-match > b {
    grid-column: 2;
  }
}

/* First-visit welcome */
.welcome-modal {
  width: min(480px, calc(100% - 28px));
  border: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.welcome-modal::backdrop {
  background: rgba(20, 11, 31, 0.68);
  backdrop-filter: blur(5px);
}

.welcome-card {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 34px 30px 30px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--primary);
  text-align: center;
}

.welcome-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.welcome-symbol {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
}

.welcome-pokeball {
  border: 2px solid var(--primary-strong);
  border-radius: 50%;
}

.welcome-pokeball::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 0;
  width: 100%;
  border-top: 2px solid var(--primary-strong);
}

.welcome-pokeball::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--primary-strong);
  border-radius: 50%;
  background: var(--panel);
}

.welcome-compass {
  border: 2px solid var(--primary-strong);
  border-radius: 50%;
}

.welcome-compass::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 15px;
  width: 8px;
  height: 21px;
  border: 2px solid var(--primary-strong);
  background: transparent;
  transform: rotate(35deg) skewY(-18deg);
}

.welcome-compass::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 17px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-strong);
}

#welcomeContent small {
  color: var(--primary-strong);
  font-weight: 900;
  text-transform: uppercase;
}

#welcomeContent h2 {
  margin: 9px 0 10px;
  font-size: 1.75rem;
  line-height: 1.15;
}

#welcomeContent p {
  margin: 0 auto 22px;
  color: var(--muted);
  line-height: 1.55;
}

.welcome-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.welcome-choices button {
  min-height: 46px;
}

@media (max-width: 520px) {
  .welcome-card {
    padding: 30px 20px 22px;
  }

  .welcome-choices {
    grid-template-columns: 1fr;
  }
}

/* Knowledge center and price-drop badge */
.knowledge-book-icon {
  position: relative;
  width: 17px;
  height: 16px;
  flex: 0 0 17px;
  border: 1.5px solid currentColor;
  border-radius: 2px 4px 4px 2px;
  background: transparent;
}

.knowledge-book-icon::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: 4px;
  height: 16px;
  border-left: 1.5px solid currentColor;
}

.price-drop-badge {
  align-self: flex-end;
  width: max-content;
  margin-bottom: 7px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--green) 55%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 11%, var(--panel));
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
}

.knowledge-modal {
  width: min(850px, calc(100% - 28px));
  height: min(700px, calc(100vh - 32px));
  border: 0;
  padding: 0;
  background: transparent;
  overflow: clip;
}

.knowledge-modal::backdrop {
  background: rgba(20, 11, 31, 0.7);
  backdrop-filter: blur(5px);
}

.knowledge-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--primary);
}

.knowledge-card .modal-head small {
  color: var(--primary-strong);
  font-weight: 900;
  text-transform: uppercase;
}

.knowledge-card .modal-head h2 {
  margin: 5px 0 0;
}

.knowledge-tabs {
  display: flex;
  gap: 5px;
  margin: 20px 0 18px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.knowledge-tabs button {
  padding: 9px 13px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
}

.knowledge-tabs button.active {
  background: var(--panel-2);
  color: var(--primary-strong);
}

.knowledge-panel {
  min-height: 0;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.glossary-search {
  display: grid;
  gap: 7px;
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: 14px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.glossary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.glossary-list article {
  padding: 16px 14px 16px 0;
  border-bottom: 1px solid var(--line);
}

.glossary-list article:nth-child(odd) {
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.glossary-list article:nth-child(even) {
  padding-left: 20px;
}

.glossary-list p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.glossary-empty {
  grid-column: 1 / -1;
  padding: 28px 0;
  color: var(--muted);
}

.auth-warning,
.auth-footer {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--amber);
  background: color-mix(in srgb, var(--amber) 9%, var(--panel));
  color: var(--muted);
  line-height: 1.55;
}

.auth-warning strong {
  color: var(--ink);
}

.auth-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 24px 0;
}

.auth-columns article + article {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.auth-columns h3 {
  margin: 0 0 13px;
}

.auth-columns ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-columns li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.auth-columns li strong {
  color: var(--ink);
}

.auth-footer {
  border-left-color: var(--red);
  background: color-mix(in srgb, var(--red) 7%, var(--panel));
}

@media (max-width: 720px) {
  .knowledge-modal {
    width: calc(100% - 20px);
    height: calc(100vh - 20px);
  }

  .knowledge-card {
    padding: 20px;
  }

  .knowledge-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .glossary-list,
  .auth-columns {
    grid-template-columns: 1fr;
  }

  .glossary-list article:nth-child(odd),
  .glossary-list article:nth-child(even) {
    padding: 14px 0;
    border-right: 0;
  }

  .auth-columns article + article {
    padding-top: 22px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* Refined knowledge center */
.knowledge-card {
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--primary) 65%, transparent);
}

.knowledge-card > .modal-head {
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
}

.knowledge-card > .modal-head h2 {
  font-size: 1.55rem;
}

.knowledge-tabs {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.knowledge-tabs button {
  position: relative;
  min-height: 50px;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.knowledge-tabs button.active {
  background: transparent;
  color: var(--primary-strong);
}

.knowledge-tabs button.active::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 3px;
  background: var(--primary);
}

.knowledge-panel {
  position: relative;
  z-index: 1;
  overscroll-behavior: contain;
  padding: 22px 26px 26px;
}

.rarity-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.rarity-intro small {
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rarity-intro h3 {
  margin: 5px 0 0;
  font-size: 1.18rem;
}

.rarity-intro p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: right;
}

.rarity-list {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.rarity-list article {
  display: grid;
  grid-template-columns: 62px minmax(190px, 0.8fr) minmax(220px, 1.2fr);
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.rarity-list article:last-child {
  border-bottom: 0;
}

.rarity-list article:hover {
  background: var(--panel-2);
}

.rarity-symbol {
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-align: center;
}

.rarity-symbol.gold {
  color: #d6a814;
}

.rarity-symbol.silver {
  color: #9ca3af;
}

.rarity-symbol.promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.rarity-symbol.promo::after {
  content: "PROMO";
  font-size: 0.47rem;
  letter-spacing: 0;
}

.rarity-list article > div {
  display: grid;
  gap: 3px;
}

.rarity-list article > div small {
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 850;
}

.rarity-list article > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
}

.rarity-note {
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--primary);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.glossary-search {
  padding: 0 0 16px;
}

.glossary-list {
  display: block;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.glossary-list article,
.glossary-list article:nth-child(odd),
.glossary-list article:nth-child(even) {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.glossary-list article:last-child {
  border-bottom: 0;
}

.glossary-list article:hover {
  background: var(--panel-2);
}

.glossary-list p {
  margin: 0;
}

.auth-columns article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.auth-columns article + article {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

@media (max-width: 720px) {
  .knowledge-card > .modal-head,
  .knowledge-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .knowledge-tabs {
    grid-template-columns: 1fr;
    padding: 0 18px;
  }

  .knowledge-tabs button {
    min-height: 42px;
    border-bottom: 1px solid var(--line);
  }

  .rarity-intro {
    display: block;
  }

  .rarity-intro p {
    margin-top: 8px;
    text-align: left;
  }

  .rarity-list article {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .rarity-list article > p {
    grid-column: 2;
  }

  .glossary-list article,
  .glossary-list article:nth-child(odd),
  .glossary-list article:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .auth-columns article + article {
    padding: 18px;
  }
}

/* Pokemon card anatomy map */
.knowledge-tabs {
  grid-template-columns: repeat(4, 1fr);
}

.anatomy-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.anatomy-intro small {
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.anatomy-intro h3 {
  margin: 5px 0 0;
  font-size: 1.18rem;
}

.anatomy-intro p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: right;
}

.card-anatomy-map {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 290px minmax(150px, 1fr);
  align-items: center;
  gap: 24px;
}

.anatomy-labels {
  display: grid;
  gap: 10px;
}

.anatomy-labels button {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.anatomy-labels button::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  border-top: 1px solid var(--line);
}

.anatomy-left button::after {
  right: -24px;
}

.anatomy-right button::after {
  left: -24px;
}

.anatomy-labels button:hover,
.anatomy-labels button.anatomy-active {
  border-color: var(--primary);
  background: var(--panel-2);
}

.anatomy-labels button b {
  font-size: 0.82rem;
}

.anatomy-labels button span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.anatomy-card {
  width: 290px;
  aspect-ratio: 2.5 / 3.5;
  padding: 13px;
  border: 8px solid #e0ba36;
  border-radius: 15px;
  background: #f6df72;
  color: #34270d;
  box-shadow: 0 16px 34px rgba(37, 20, 53, 0.2);
}

.anatomy-card-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 6px;
  min-height: 30px;
}

.anatomy-card-top small {
  font-size: 0.52rem;
  font-weight: 900;
}

.anatomy-card-top strong {
  font-size: 1.08rem;
}

.anatomy-card-top b {
  font-size: 0.75rem;
}

.anatomy-card-top i {
  font-style: normal;
}

.anatomy-art {
  position: relative;
  display: grid;
  height: 150px;
  place-items: center;
  margin-top: 5px;
  overflow: hidden;
  border: 3px solid #c49724;
  background:
    linear-gradient(135deg, rgba(255,255,255,.58), transparent 48%),
    linear-gradient(155deg, #f5cf38, #6bb5d8 55%, #4d8a63);
}

.anatomy-pokemon {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border: 3px solid rgba(255,255,255,.8);
  border-radius: 48% 52% 45% 55%;
  background: rgba(247, 209, 42, .85);
  color: #74510a;
  font-size: 2.2rem;
  font-weight: 950;
  transform: rotate(-7deg);
}

.anatomy-art small {
  position: absolute;
  right: 4px;
  bottom: 3px;
  padding: 2px 4px;
  background: rgba(255,255,255,.74);
  font-size: 0.47rem;
}

.anatomy-description {
  margin: 4px 0 8px;
  padding: 3px;
  border: 1px solid rgba(96, 69, 12, .28);
  font-size: 0.48rem;
  text-align: center;
}

.anatomy-attack {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 5px;
  padding: 7px 3px 3px;
  border-top: 1px solid rgba(96, 69, 12, .3);
}

.anatomy-attack b {
  font-size: 0.75rem;
}

.anatomy-attack-text {
  min-height: 38px;
  margin: 3px 0 5px;
  font-size: 0.52rem;
  line-height: 1.35;
}

.anatomy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 5px 0;
  border-top: 1px solid rgba(96, 69, 12, .3);
  border-bottom: 1px solid rgba(96, 69, 12, .3);
  font-size: 0.45rem;
  text-align: center;
}

.anatomy-legal {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  padding-top: 6px;
  font-size: 0.48rem;
}

.anatomy-card [data-field] {
  border-radius: 3px;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.anatomy-card [data-field].anatomy-active {
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 0 0 3px rgba(141, 95, 196, .52);
}

.anatomy-note {
  margin: 18px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--primary);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .card-anatomy-map {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }

  .anatomy-card {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 280px;
  }

  .anatomy-left,
  .anatomy-right {
    grid-column: 2;
  }

  .anatomy-labels button::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .anatomy-intro {
    display: block;
  }

  .anatomy-intro p {
    margin-top: 8px;
    text-align: left;
  }

  .card-anatomy-map {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .anatomy-card {
    grid-column: 1;
    grid-row: auto;
    width: min(280px, 100%);
  }

  .anatomy-left,
  .anatomy-right {
    grid-column: 1;
    width: 100%;
  }

  .anatomy-labels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .knowledge-tabs {
    grid-template-columns: 1fr;
  }
}

/* Real modern Common card anatomy */
.modern-card-map {
  position: relative;
  display: block;
  width: min(100%, 900px);
  height: 560px;
  margin: 0 auto;
}

.anatomy-card-stage {
  position: absolute;
  top: 0;
  left: 50%;
  width: 330px;
  aspect-ratio: 735 / 1024;
  transform: translateX(-50%);
}

.anatomy-real-card {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(20, 11, 31, 0.25));
}

.anatomy-connectors {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.anatomy-connectors g {
  stroke: color-mix(in srgb, var(--primary) 50%, var(--line));
  stroke-width: 1.5;
  transition: stroke 150ms ease, stroke-width 150ms ease;
}

.anatomy-connectors polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.anatomy-connectors circle {
  fill: var(--panel);
  stroke: color-mix(in srgb, var(--primary) 68%, var(--line));
}

.anatomy-connectors g.anatomy-active {
  stroke: var(--primary);
  stroke-width: 3;
}

.anatomy-connectors g.anatomy-active circle {
  fill: var(--primary);
}

.anatomy-callout {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 3px;
  width: 210px;
  min-height: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  color: var(--ink);
  text-align: left;
}

.anatomy-callout:hover,
.anatomy-callout.anatomy-active {
  border-color: var(--primary);
  background: var(--panel-2);
}

.anatomy-callout b {
  font-size: 0.82rem;
}

.anatomy-callout span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.anatomy-callout.left { left: 0; }
.anatomy-callout.right { right: 0; }
.anatomy-callout.stage { top: 35px; }
.anatomy-callout.name { top: 90px; }
.anatomy-callout.art { top: 185px; }
.anatomy-callout.artist { top: 380px; }
.anatomy-callout.regulation { top: 450px; }
.anatomy-callout.pokedex { top: 280px; }
.anatomy-callout.hp { top: 44px; }
.anatomy-callout.attack { top: 145px; }
.anatomy-callout.stats { top: 245px; }
.anatomy-callout.number { top: 350px; }
.anatomy-callout.rarity { top: 420px; }

.anatomy-hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  border: 2px solid transparent;
  border-radius: 4px;
  background: transparent;
  pointer-events: none;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.anatomy-hotspot.anatomy-active {
  border: 3px solid var(--primary);
  background: rgba(255, 250, 255, 0.72);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.88),
    0 0 18px color-mix(in srgb, var(--primary) 58%, transparent);
}

.anatomy-hotspot.stage { left: 8px; top: 9px; width: 55px; height: 27px; }
.anatomy-hotspot.name { left: 62px; top: 11px; width: 145px; height: 34px; }
.anatomy-hotspot.hp { left: 253px; top: 10px; width: 70px; height: 40px; }
.anatomy-hotspot.art { left: 23px; top: 43px; width: 284px; height: 184px; }
.anatomy-hotspot.pokedex { left: 17px; top: 217px; width: 296px; height: 19px; }
.anatomy-hotspot.attack { left: 18px; top: 276px; width: 295px; height: 72px; }
.anatomy-hotspot.stats { left: 17px; top: 389px; width: 296px; height: 30px; }
.anatomy-hotspot.artist { left: 18px; top: 420px; width: 123px; height: 18px; }
.anatomy-hotspot.regulation { left: 17px; top: 437px; width: 15px; height: 20px; }
.anatomy-hotspot.number { left: 32px; top: 437px; width: 60px; height: 20px; }
.anatomy-hotspot.rarity { left: 92px; top: 437px; width: 15px; height: 20px; }

.anatomy-hotspot.art.anatomy-active {
  background: rgba(255, 250, 255, 0.32);
}

@media (max-width: 900px) {
  .modern-card-map {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    height: auto;
    padding-top: 500px;
  }

  .anatomy-real-card {
    width: 100%;
  }

  .anatomy-card-stage { width: 330px; }

  .anatomy-connectors {
    display: none;
  }

  .anatomy-hotspot {
    display: none;
  }

  .anatomy-callout,
  .anatomy-callout.left,
  .anatomy-callout.right {
    position: static;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .modern-card-map {
    grid-template-columns: 1fr;
    padding-top: 440px;
  }

  .anatomy-real-card {
    width: 100%;
  }

  .anatomy-card-stage { width: 290px; }
}

/* Anatomy information groups: collector details left, gameplay details right. */
.modern-card-map {
  grid-template-rows: repeat(7, auto);
  row-gap: 5px;
}

.anatomy-original-card {
  grid-row: 1 / 8;
}

.modern-card-map .anatomy-callout.stage { grid-row: 1; }
.modern-card-map .anatomy-callout.name { grid-row: 2; }
.modern-card-map .anatomy-callout.art { grid-row: 3; }
.modern-card-map .anatomy-callout.pokedex { grid-row: 4; }
.modern-card-map .anatomy-callout.artist { grid-row: 5; }
.modern-card-map .anatomy-callout.number { grid-row: 6; }
.modern-card-map .anatomy-callout.rarity { grid-row: 7; }
.modern-card-map .anatomy-callout.hp { grid-row: 2; }
.modern-card-map .anatomy-callout.attack { grid-row: 3; }
.modern-card-map .anatomy-callout.stats { grid-row: 4; }
.modern-card-map .anatomy-callout.regulation { grid-row: 5; }

.original-field {
  cursor: pointer;
  touch-action: manipulation;
}

.original-field:focus-visible {
  outline: none;
}

/* Faithful modern English study card */
.modern-study-card {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: 330px;
  aspect-ratio: 735 / 1024;
  padding: 13px 14px 10px;
  border: 10px solid #bfc2c5;
  border-radius: 19px;
  background: linear-gradient(145deg, #d9ef58, #a6d83f 52%, #76b93c);
  color: #171b11;
  box-shadow: 0 16px 34px rgba(20, 11, 31, 0.25);
  transform: translateX(-50%);
  overflow: hidden;
}

.study-card-head {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 5px;
  height: 35px;
}

.study-card-head > span {
  padding: 4px 5px;
  border-radius: 12px 2px 10px 2px;
  background: #e8e9e8;
  font-size: 0.58rem;
  font-weight: 950;
  font-style: italic;
}

.study-card-head strong {
  font-size: 1.45rem;
  line-height: 1;
}

.study-card-head > b {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 1.55rem;
}

.study-card-head small {
  font-size: 0.54rem;
}

.study-card-head i {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: #1d621e;
  color: #d9ef58;
  font-size: 1rem;
  font-style: normal;
}

.study-card-art {
  position: relative;
  height: 178px;
  overflow: hidden;
  border: 4px solid #adb1b2;
  background:
    radial-gradient(circle at 18% 25%, #f3a7bc 0 7%, transparent 7.5%),
    radial-gradient(circle at 78% 20%, #f5c45d 0 8%, transparent 8.5%),
    radial-gradient(circle at 32% 75%, #f1957d 0 6%, transparent 6.5%),
    linear-gradient(155deg, #cfe5a1, #79c8bc 55%, #4d956b);
}

.study-flower {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 7px dotted rgba(255,255,255,.7);
  border-radius: 50%;
}

.study-flower.one { top: 18px; left: 30px; }
.study-flower.two { right: 24px; bottom: 30px; }
.study-flower.three { left: 65px; bottom: 15px; }

.study-budew {
  position: absolute;
  top: 46px;
  left: 112px;
  width: 78px;
  height: 88px;
  border: 3px solid #34743b;
  border-radius: 48% 48% 45% 45%;
  background: #77b84b;
  transform: rotate(-7deg);
}

.study-budew::before,
.study-budew::after {
  content: "";
  position: absolute;
  top: -32px;
  width: 42px;
  height: 50px;
  border: 3px solid #34743b;
  border-radius: 55% 55% 45% 45%;
}

.study-budew::before { left: -5px; background: #5da5d3; transform: rotate(-25deg); }
.study-budew::after { right: -5px; background: #ef6f67; transform: rotate(25deg); }

.study-budew i {
  position: absolute;
  top: 27px;
  left: 13px;
  width: 50px;
  height: 42px;
  border-radius: 50%;
  background: #dce36b;
}

.study-budew b::before,
.study-budew b::after {
  content: "";
  position: absolute;
  top: 43px;
  width: 4px;
  height: 7px;
  border-radius: 50%;
  background: #30351d;
}

.study-budew b::before { left: 28px; }
.study-budew b::after { right: 27px; }

.study-pokedex {
  height: 20px;
  margin: -2px 4px 0;
  padding: 4px 5px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(#f5f5f5, #aeb3b3);
  font-size: 0.48rem;
  text-align: center;
}

.study-attack {
  min-height: 113px;
  padding: 43px 10px 8px;
}

.study-attack > div {
  display: grid;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  gap: 7px;
}

.energy-orb {
  width: 20px;
  height: 20px;
  border: 2px solid #a6aaab;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #b7bec0 58%, #7b8283);
}

.study-attack strong { font-size: 1.02rem; }
.study-attack b { font-size: 1.05rem; }
.study-attack p { margin: 5px 0 0; font-size: 0.65rem; line-height: 1.3; }

.study-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  min-height: 31px;
  padding: 3px 4px;
  border-top: 3px solid #c1c4c4;
  border-bottom: 3px solid #c1c4c4;
  font-size: 0.57rem;
  text-align: center;
}

.study-stats small { display: block; font-size: 0.48rem; }

.study-card-bottom {
  position: relative;
  min-height: 57px;
  padding: 7px 2px 0;
}

.study-card-bottom > small { font-size: 0.49rem; font-weight: 800; }
.study-card-bottom > p { position: absolute; top: 4px; right: 0; margin: 0; font-size: 0.45rem; line-height: 1.25; text-align: right; }

.study-codes {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.59rem;
  font-weight: 900;
}

.study-codes b {
  padding: 1px 4px;
  border: 2px solid #1b1b1b;
  border-radius: 3px;
  background: #ffffff;
}

.study-codes i { font-style: normal; }

.modern-study-card footer {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  font-size: 0.4rem;
  text-align: center;
}

.modern-study-card [data-field] {
  border: 3px solid transparent;
  border-radius: 5px;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.modern-study-card [data-field].anatomy-active {
  border-color: var(--primary);
  background: rgba(255, 250, 255, 0.78);
  box-shadow: 0 0 0 2px #ffffff, 0 0 18px color-mix(in srgb, var(--primary) 62%, transparent);
}

@media (max-width: 900px) {
  .modern-study-card { width: 330px; }
}

@media (max-width: 560px) {
  .modern-study-card { width: 290px; }
}

/* Polished anatomy card layout */
.modern-study-card {
  box-sizing: border-box;
  width: 330px;
  height: 460px;
  aspect-ratio: auto;
  padding: 10px 11px 8px;
  border-width: 9px;
  background: linear-gradient(145deg, #cdea62, #9fce42 58%, #78b738);
}

.study-card-head {
  grid-template-columns: 55px 1fr auto;
  height: 32px;
}

.study-card-head > span {
  padding: 3px 5px;
}

.study-card-head strong {
  font-size: 1.3rem;
}

.study-card-head > b {
  font-size: 1.35rem;
}

.study-card-head i {
  width: 26px;
  height: 26px;
  font-size: 0.82rem;
}

.study-card-art {
  height: 174px;
  border: 3px solid #aeb3b4;
  background: #cae4af;
}

.study-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.study-pokedex {
  height: 18px;
  padding: 3px 4px;
  font-size: 0.44rem;
}

.study-attack {
  min-height: 0;
  height: 89px;
  padding: 30px 9px 5px;
}

.study-attack strong,
.study-attack b {
  font-size: 0.96rem;
}

.study-attack p {
  font-size: 0.58rem;
}

.study-stats {
  min-height: 0;
  height: 29px;
  font-size: 0.5rem;
}

.study-card-bottom {
  min-height: 0;
  height: 55px;
  padding-top: 6px;
}

.study-card-bottom > small {
  font-size: 0.43rem;
}

.study-card-bottom > p {
  font-size: 0.39rem;
}

.study-codes {
  bottom: 2px;
  font-size: 0.52rem;
}

.modern-study-card footer {
  bottom: 1px;
  font-size: 0.34rem;
}

.modern-card-map {
  display: block;
  min-height: 500px;
}

@media (max-width: 900px) {
  .modern-card-map {
    display: grid;
    min-height: 0;
    padding-top: 480px;
  }
}

@media (max-width: 560px) {
  .modern-study-card {
    width: 290px;
    height: 405px;
    transform: translateX(-50%) scale(.88);
    transform-origin: top center;
  }

  .modern-card-map {
    padding-top: 390px;
  }
}

/* Original card with exact percentage-based fields */
.anatomy-original-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 330px;
  aspect-ratio: 735 / 1024;
  transform: translateX(-50%);
}

.anatomy-original-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(20, 11, 31, 0.25));
}

.original-field {
  position: absolute;
  z-index: 2;
  display: block;
  border: 3px solid transparent;
  border-radius: 5px;
  pointer-events: auto;
  cursor: pointer;
}

.original-field.anatomy-active {
  border-color: var(--primary);
  background: rgba(255, 250, 255, 0.7);
  box-shadow: 0 0 0 2px #ffffff, 0 0 18px color-mix(in srgb, var(--primary) 65%, transparent);
}

.original-field.stage { left: 2.2%; top: 2.4%; width: 16.5%; height: 5.2%; }
.original-field.name { left: 18%; top: 2.5%; width: 42%; height: 6%; }
.original-field.hp { left: 75%; top: 2.2%; width: 22%; height: 7%; }
.original-field.art { left: 6%; top: 9.3%; width: 88%; height: 38.2%; }
.original-field.pokedex { left: 4.8%; top: 47%; width: 90.5%; height: 4.1%; }
.original-field.attack { left: 5%; top: 59%; width: 90%; height: 15.5%; }
.original-field.stats { left: 4.6%; top: 85.2%; width: 90.8%; height: 5.2%; }
.original-field.artist { left: 4.7%; top: 90.4%; width: 39%; height: 3.8%; }
.original-field.regulation { left: 5.2%; top: 93.5%; width: 4.2%; height: 3.7%; }
.original-field.number { left: 9.5%; top: 93.5%; width: 18.2%; height: 3.7%; }
.original-field.rarity { left: 27.7%; top: 93.5%; width: 3.8%; height: 3.7%; border-radius: 50%; }

.original-field.art.anatomy-active {
  background: rgba(255, 250, 255, 0.28);
}

@media (max-width: 900px) {
  .anatomy-original-card { width: 330px; }
}

@media (max-width: 560px) {
  .anatomy-original-card { width: 290px; }
}

/* Compact anatomy labels aligned with the real card */
.modern-card-map .anatomy-callout {
  width: 220px;
  padding: 7px 9px;
}

.modern-card-map .anatomy-callout.stage { top: 24px; }
.modern-card-map .anatomy-callout.name { top: 78px; }
.modern-card-map .anatomy-callout.art { top: 177px; }
.modern-card-map .anatomy-callout.pokedex { top: 276px; }
.modern-card-map .anatomy-callout.artist { top: 378px; }
.modern-card-map .anatomy-callout.regulation { top: 438px; }

.modern-card-map .anatomy-callout.hp { top: 34px; }
.modern-card-map .anatomy-callout.attack { top: 150px; }
.modern-card-map .anatomy-callout.stats { top: 270px; }
.modern-card-map .anatomy-callout.number { top: 372px; }
.modern-card-map .anatomy-callout.rarity { top: 432px; }

.modern-card-map .anatomy-callout b {
  font-size: 0.79rem;
}

.modern-card-map .anatomy-callout span {
  font-size: 0.68rem;
}

/* Compact anatomy legend */
.modern-card-map {
  display: grid;
  grid-template-columns: 220px 330px 220px;
  grid-template-rows: repeat(6, auto);
  align-content: center;
  justify-content: space-between;
  column-gap: 24px;
  row-gap: 8px;
  height: 500px;
  min-height: 500px;
}

.anatomy-original-card {
  position: relative;
  top: auto;
  left: auto;
  grid-column: 2;
  grid-row: 1 / 7;
  align-self: center;
  transform: none;
}

.modern-card-map .anatomy-callout,
.modern-card-map .anatomy-callout.left,
.modern-card-map .anatomy-callout.right {
  position: static;
  width: 100%;
  min-height: 54px;
  align-self: center;
}

.modern-card-map .anatomy-callout.left { grid-column: 1; }
.modern-card-map .anatomy-callout.right { grid-column: 3; }
.modern-card-map .anatomy-callout.stage { grid-row: 1; }
.modern-card-map .anatomy-callout.name { grid-row: 2; }
.modern-card-map .anatomy-callout.art { grid-row: 3; }
.modern-card-map .anatomy-callout.pokedex { grid-row: 4; }
.modern-card-map .anatomy-callout.artist { grid-row: 5; }
.modern-card-map .anatomy-callout.regulation { grid-row: 6; }
.modern-card-map .anatomy-callout.hp { grid-row: 1; }
.modern-card-map .anatomy-callout.attack { grid-row: 2; }
.modern-card-map .anatomy-callout.stats { grid-row: 3; }
.modern-card-map .anatomy-callout.number { grid-row: 4; }
.modern-card-map .anatomy-callout.rarity { grid-row: 5; }

@media (max-width: 900px) {
  .modern-card-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    height: auto;
    min-height: 0;
    padding-top: 480px;
  }

  .anatomy-original-card {
    position: absolute;
    top: 0;
    left: 50%;
    grid-column: auto;
    grid-row: auto;
    transform: translateX(-50%);
  }

  .modern-card-map .anatomy-callout,
  .modern-card-map .anatomy-callout.left,
  .modern-card-map .anatomy-callout.right {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .modern-card-map {
    grid-template-columns: 1fr;
    padding-top: 440px;
  }
}

body.dark {
  color-scheme: dark;
  --ink: #f6efff;
  --muted: #c8b6d9;
  --line: #513b68;
  --panel: #241633;
  --panel-2: #321f46;
  --page: #160d22;
  --input: #1e122b;
  --primary: #b982ee;
  --primary-strong: #dab8ff;
  --green: #35d399;
  --red: #fb7185;
  --amber: #f5b84b;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

#urunler,
#magazalar,
#alarm,
#iletisim,
#takibim {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--input);
  color: var(--ink);
}

input,
select {
  min-height: 42px;
}

textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 11px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.top-actions,
.search-row,
.quick-filters,
.metrics,
.catalog-head,
.filter-strip,
.watchlist,
.watch-items,
.modal-head,
.chart-head,
.alarm-form {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  align-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--primary-strong);
  color: #ffffff;
  line-height: 1;
}

.brand-mark b {
  font-size: 0.82rem;
  font-weight: 950;
}

.brand .brand-mark small {
  margin-top: 2px;
  color: #f1dcff;
  font-size: 0.52rem;
  font-weight: 950;
  opacity: 1;
  text-shadow: 0 1px 1px rgba(42, 18, 63, 0.28);
}

body.dark .brand .brand-mark small {
  color: #3b1858;
  text-shadow: none;
}

.brand small {
  display: block;
  color: var(--muted);
}

.nav {
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
}

.top-actions {
  gap: 8px;
}

.ghost-button,
.follow-button,
.icon-button,
.quick-filters button {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 42px;
  border: 0;
  background: transparent;
  padding: 4px 8px;
}


.theme-card-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 27px;
  height: 34px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--primary) 65%, #ffffff);
  border-radius: 5px;
  background: linear-gradient(145deg, #f7d56b, #f3a65b);
  box-shadow: 0 0 12px rgba(243, 178, 91, 0.42);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.account-card-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 4px 6px;
}

.account-card-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 27px;
  height: 34px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--primary) 70%, #ffffff);
  border-radius: 5px;
  background: linear-gradient(145deg, var(--primary), var(--primary-strong));
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 32%, transparent);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.account-card-button:hover .account-card-icon {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px color-mix(in srgb, var(--primary) 38%, transparent);
}

.account-card-icon i {
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
  margin-top: -8px;
  border-radius: 50%;
  background: #ffffff;
}

.account-card-icon i::after {
  content: "";
  position: absolute;
  top: 13px;
  left: -5px;
  width: 21px;
  height: 15px;
  border-radius: 11px 11px 5px 5px;
  background: #ffffff;
}

.account-name {
  max-width: 92px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-card-icon::before,
.theme-card-icon::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 11px 8px 0 rgba(255, 255, 255, 0.55), -9px 10px 0 rgba(255, 255, 255, 0.55);
}

.theme-card-icon::before {
  top: 5px;
  left: 6px;
}

.theme-card-icon::after {
  right: 5px;
  bottom: 5px;
}

.theme-card-icon i {
  position: relative;
  z-index: 1;
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff4b8;
  box-shadow: 0 0 0 3px rgba(255, 244, 184, 0.28), 0 0 12px #fff0a0;
  animation: themeGlow 1.8s ease-in-out infinite;
}

body.dark .theme-card-icon {
  border-color: #c9a6f2;
  background: linear-gradient(145deg, #39204f, #6d4094);
  box-shadow: 0 0 13px rgba(185, 130, 238, 0.42);
  transform: rotateY(180deg);
}

body.dark .theme-card-icon i {
  width: 12px;
  height: 12px;
  background: #eee1ff;
  box-shadow: 0 0 0 3px rgba(238, 225, 255, 0.18), 0 0 11px #d6b8ff;
}

body.dark .theme-card-icon i::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #53316f;
}

@keyframes themeGlow {
  0%, 100% { transform: scale(0.92); opacity: 0.82; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-card-icon i,
  .price-alarm-button.throwing .alarm-game-icon {
    animation: none;
  }
}

main {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
  gap: 28px;
  align-items: end;
  padding: 54px 0 24px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--panel);
  color: var(--primary-strong);
  font-weight: 850;
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 5vw, 4.45rem);
  line-height: 1.01;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.search-panel,
.watchlist,
.catalog,
.store-card,
.alarm,
.account-modal .modal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.search-panel {
  padding: 18px;
}

.search-panel label,
.filter-strip label,
.modal-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 760;
}

.search-row {
  gap: 8px;
  margin-top: 8px;
}

.quick-filters {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quick-filters button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
}

.filter-icon {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.pokeball-icon {
  overflow: hidden;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(to bottom, #d95c75 0 43%, currentColor 43% 56%, #f8eefc 56% 100%);
}

.pokeball-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translate(-50%, -50%);
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: var(--panel-2);
}

.compass-icon {
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.compass-icon::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 4px;
  height: 9px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 50% 75%, 0 100%);
  transform: rotate(32deg);
}

.sleeve-icon {
  width: 13px;
  height: 17px;
  margin-left: 2px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-shadow: 3px -2px 0 -1px var(--panel-2), 3px -2px 0 0 currentColor;
}

.cards-icon::before,
.cards-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.cards-icon::before {
  left: 1px;
  top: 2px;
  transform: rotate(-10deg);
}

.cards-icon::after {
  right: 1px;
  top: 1px;
  transform: rotate(8deg);
  background: var(--panel-2);
}

.quick-filters button.active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, var(--panel));
  color: var(--primary-strong);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.metrics div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metrics strong {
  display: block;
  font-size: 1.65rem;
}

.metrics span,
.catalog-head p,
.watchlist p,
.meta,
.chart-head,
.offer small,
.alarm p,
.modal-card p {
  color: var(--muted);
}

.watchlist {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
}

.watchlist h2,
.watchlist p {
  margin-bottom: 4px;
}

.watch-items {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.watch-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--panel-2);
  font-weight: 800;
}

.catalog {
  padding: 18px;
}

.catalog-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.catalog-head h2 {
  margin-bottom: 4px;
}

.catalog-head p {
  margin-bottom: 0;
}

.catalog-head select {
  max-width: 230px;
}

.filter-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.filter-strip label span {
  font-weight: 850;
  color: var(--ink);
}

.checkbox {
  grid-template-columns: 20px 1fr;
  align-items: end;
  padding-bottom: 8px;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
}

.product-list {
  display: grid;
  gap: 14px;
}

.product-card {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr) minmax(260px, 320px);
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.1);
  transform: translateY(-2px);
  outline: none;
}

.product-art {
  position: relative;
  display: grid;
  align-content: end;
  align-self: start;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 198px;
  max-height: 214px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 40%),
    var(--art);
  color: #ffffff;
}

.product-art:not(.has-product-image) {
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
}

.product-art:not(.has-product-image)::before,
.product-art:not(.has-product-image)::after {
  display: none;
}

.product-art:not(.has-product-image) .game-badge {
  position: static;
}

.product-art:not(.has-product-image) strong {
  display: none;
}

.product-art:not(.has-product-image) small {
  max-width: 128px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .86);
  font-size: 0;
}

.product-art:not(.has-product-image) small::before {
  content: "Görsel bekleniyor";
  font-size: .76rem;
}

.product-art.has-set-preview {
  align-content: center;
  justify-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .22), transparent 38%),
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, .24), transparent 28%),
    linear-gradient(145deg, #533073, #8d58c8 56%, #d9b8ff);
}

.product-set-preview {
  display: grid;
  place-items: center;
  gap: 7px;
  width: min(92%, 132px);
  text-align: center;
}

.product-set-preview strong {
  display: inline-grid !important;
  place-items: center;
  min-width: 58px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 10px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: .04em;
}

.product-set-preview small {
  max-width: 128px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, .88) !important;
  font-size: .72rem !important;
  font-weight: 900;
  line-height: 1.18;
}

.product-art.has-set-preview small::before {
  content: "";
  display: none;
}

.product-art.has-product-image {
  background-color: #ffffff;
  background-image: var(--art);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.product-art.has-product-image::before,
.product-art.has-product-image::after {
  display: none;
}

.product-art.has-product-image .game-badge,
.product-art.has-product-image strong,
.product-art.has-product-image small {
  padding: 3px 6px;
  background: rgba(35, 18, 48, 0.82);
  color: #ffffff;
  border-radius: 4px;
  width: fit-content;
}

.product-art::before {
  content: "";
  position: absolute;
  inset: 32px 32px 58px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  transform: rotate(-5deg);
}

.product-art::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  transform: translate(-50%, -58%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.04);
  opacity: 0.8;
}

.product-art[data-game="Pokemon"]::after {
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.08) 0 44%, rgba(255,255,255,0.28) 44% 55%, transparent 55%),
    radial-gradient(circle, transparent 0 13%, rgba(255,255,255,0.38) 14% 18%, transparent 19%);
}

.product-art[data-game="One Piece"]::after {
  border-style: dashed;
  background: conic-gradient(from 20deg, transparent 0 12%, rgba(255,255,255,0.18) 12% 15%, transparent 15% 37%, rgba(255,255,255,0.18) 37% 40%, transparent 40% 100%);
}

.product-art[data-game="Aksesuar"]::after {
  width: 48px;
  height: 64px;
  border-radius: 6px;
  transform: translate(-50%, -58%) rotate(-7deg);
  box-shadow: 8px 6px 0 -2px rgba(255,255,255,0.08), 8px 6px 0 0 rgba(255,255,255,0.2);
}

.catalog-head h2::before,
.contact-copy h2::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 20px;
  margin-right: 9px;
  border-radius: 3px;
  background: var(--primary);
  vertical-align: -3px;
}

.product-art strong,
.product-art small,
.game-badge {
  position: relative;
  z-index: 1;
}

.product-art strong {
  font-size: 1rem;
}

.game-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.78rem;
  font-weight: 900;
}

.product-main {
  min-width: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.product-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.meta {
  line-height: 1.45;
}

.chart-box {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.chart-head {
  justify-content: space-between;
  margin-bottom: 8px;
}

.chart-stage {
  position: relative;
  overflow: visible;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 48%),
    color-mix(in srgb, var(--panel) 72%, transparent);
}

.chart-box canvas {
  display: block;
  width: 100%;
  height: 120px;
  cursor: crosshair;
}

.chart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.chart-summary span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.chart-summary strong {
  color: var(--green);
  font-size: 1rem;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  display: none;
  min-width: 104px;
  transform: translate(-50%, calc(-100% - 12px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
  pointer-events: none;
  white-space: nowrap;
}

.chart-tooltip.near-top {
  transform: translate(-50%, 12px);
}

.chart-tooltip small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.chart-stage:hover .chart-tooltip.visible {
  display: block;
}

.product-side {
  display: grid;
  align-content: center;
  gap: 10px;
}

.price-line {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.price-line span,
.price-line small {
  color: var(--muted);
}

.price-line strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.offers {
  display: grid;
  gap: 8px;
}

.offer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 36px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.offer:not(:has(.offer-corner-badges)) {
  padding-top: 10px;
}

.offer-corner-badges {
  position: absolute;
  top: 7px;
  left: 8px;
  right: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  pointer-events: none;
}

.offer-corner-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: .68rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .16);
}

.offer-best-product {
  background: #3389e8;
}

.offer-best-total {
  background: #159f75;
}

.offer b {
  display: block;
}

.offer.rip {
  border-color: color-mix(in srgb, var(--amber) 45%, var(--line));
}

.offer.out {
  opacity: 0.68;
}

.follow-button {
  width: 100%;
}

.alarm-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.track-button {
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
}

.track-button.active {
  border-color: color-mix(in srgb, var(--green) 50%, var(--line));
  color: var(--green);
}

.alarm-action small {
  color: var(--muted);
  line-height: 1.35;
}

.price-alarm-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 12px;
}

.price-alarm-button.active {
  background: var(--green);
}

.alarm-game-icon {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.alarm-game-icon.pokemon {
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.alarm-game-icon.pokemon::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 100%;
  border-top: 1.5px solid currentColor;
}

.alarm-game-icon.pokemon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translate(-50%, -50%);
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: var(--primary);
}

.alarm-game-icon.one-piece {
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.alarm-game-icon.one-piece::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 11px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 50% 76%, 0 100%);
  transform: rotate(30deg);
}

.alarm-game-icon.accessory {
  width: 13px;
  height: 17px;
  margin-left: 2px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-shadow: 3px -2px 0 -1px var(--primary), 3px -2px 0 0 currentColor;
}

.price-alarm-button.throwing .alarm-game-icon.pokemon {
  animation: pokeballThrow 620ms cubic-bezier(.2,.8,.3,1);
}

.price-alarm-button.throwing .alarm-game-icon.one-piece {
  animation: compassSpin 620ms ease-in-out;
}

.price-alarm-button.throwing .alarm-game-icon.accessory {
  animation: cardFlash 620ms ease-in-out;
}

@keyframes pokeballThrow {
  0% { transform: translate(0, 0) rotate(0); }
  38% { transform: translate(17px, -15px) rotate(180deg) scale(1.12); }
  72% { transform: translate(7px, -5px) rotate(320deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes compassSpin {
  0% { transform: rotate(0) scale(1); }
  35% { transform: rotate(210deg) scale(1.18); }
  68% { transform: rotate(330deg) scale(0.96); }
  100% { transform: rotate(720deg) scale(1); }
}

@keyframes cardFlash {
  0%, 100% { transform: translateY(0) rotate(0); filter: brightness(1); }
  30% { transform: translateY(-7px) rotate(-12deg) scale(1.14); filter: brightness(1.8); }
  62% { transform: translateY(2px) rotate(8deg) scale(1.05); filter: brightness(1.35); }
}

.watch-login {
  min-height: 38px;
}

.stores {
  padding: 34px 0 10px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.store-card {
  padding: 14px;
}

.store-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.store-card p {
  margin: 0 0 9px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.store-card .shipping-note {
  display: inline-block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.72rem;
}

.score {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 8px;
  background: color-mix(in srgb, var(--green) 14%, var(--panel));
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
}

.score.rip {
  background: color-mix(in srgb, var(--amber) 17%, var(--panel));
  color: var(--amber);
}

.alarm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 18px;
  align-items: center;
  margin: 28px 0 60px;
  padding: 18px;
}

.alarm-form {
  gap: 8px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 28px;
  align-items: start;
  margin: 0 0 60px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.contact-copy h2 {
  max-width: 520px;
  margin-bottom: 12px;
  font-size: 1.7rem;
}

.contact-copy p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.55;
}

.contact-copy a {
  color: var(--primary-strong);
  font-weight: 850;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 760;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--green);
  font-weight: 750;
}

.site-footer {
  padding: 0 0 28px;
  color: var(--muted);
  text-align: center;
  opacity: 0.7;
}

.site-footer small {
  font-size: 0.72rem;
}

.tracking-page {
  min-height: calc(100vh - 72px);
}

body.tracking-mode main > section:not(.tracking-view) {
  display: none;
}

.tracking-view {
  min-height: calc(100vh - 120px);
  padding: 42px 0 24px;
}

.tracking-view-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
}

.tracking-view-head h1 {
  margin-bottom: 10px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
}

.tracking-hero {
  padding: 56px 0 26px;
}

.tracking-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
}

.tracking-hero p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.tracking-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.tracking-login h2,
.tracking-login p {
  margin-bottom: 4px;
}

.tracking-login p,
.tracking-info p,
.tracking-prices span,
.tracking-prices small,
.tracking-empty p {
  color: var(--muted);
}

.tracking-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.tracking-summary div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.tracking-summary strong,
.tracking-summary span {
  display: block;
}

.tracking-summary strong {
  margin-bottom: 4px;
  font-size: 1.45rem;
}

.tracking-summary span {
  color: var(--muted);
}

.tracking-list {
  display: grid;
  gap: 12px;
  padding-bottom: 46px;
}

.tracking-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.tracking-art {
  display: grid;
  align-content: space-between;
  width: 130px;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  padding: 12px;
  background: var(--art);
  color: #ffffff;
}

.tracking-art span {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.74rem;
  font-weight: 850;
}

.tracking-art strong {
  font-size: 0.94rem;
}

.tracking-info h2 {
  margin-bottom: 8px;
  font-size: 1.16rem;
}

.tracking-info p {
  margin-bottom: 0;
}

.tracking-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tracking-prices > div {
  display: grid;
  align-content: center;
  min-height: 84px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.tracking-prices strong {
  margin-top: 5px;
  font-size: 1.08rem;
}

.tracking-change.profit,
.profit {
  color: var(--green);
}

.tracking-change.loss,
.loss {
  color: var(--red);
}

.tracking-change.neutral,
.neutral {
  color: var(--ink);
}

.tracking-change small {
  margin-top: 2px;
}

.remove-track {
  grid-column: 1 / -1;
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
}

.tracking-empty {
  padding: 48px 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: center;
}

.tracking-empty a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--primary-strong);
  font-weight: 850;
}

.empty {
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: var(--panel-2);
}

.account-modal,
.product-modal {
  width: min(480px, calc(100% - 32px));
  border: 0;
  padding: 0;
  background: transparent;
  overflow: auto;
}

.product-modal {
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
}

.account-modal::backdrop,
.product-modal::backdrop {
  background: rgba(0, 0, 0, 0.58);
}

.modal-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  color: var(--ink);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
}

.alarm-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}


/* Compact Poké Ball cursor choices */
.ball-preview,
.pokemon-cursor {
  --ball-top: #d94c63;
  --ball-bottom: #f8f3fb;
  --ball-line: #3b2848;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ball-line);
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--ball-top) 0 43%, var(--ball-line) 43% 56%, var(--ball-bottom) 56% 100%);
}

.ball-preview {
  display: inline-block;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  box-shadow: 0 2px 4px rgba(35, 16, 48, 0.2);
}

.ball-preview::after,
.pokemon-cursor::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--ball-line);
  border-radius: 50%;
  background: var(--ball-bottom);
}

.ball-preview.loveball,
.pokemon-cursor.loveball {
  --ball-top: #ef85b6;
  --ball-bottom: #fff1f8;
  --ball-line: #7b315c;
}

.ball-preview.loveball::before,
.pokemon-cursor.loveball::before {
  content: "♥";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: #fff2f9;
  font-size: 10px;
  line-height: 12px;
}

.ball-preview.ultraball,
.pokemon-cursor.ultraball {
  --ball-top: #292333;
  --ball-bottom: #f5f0f8;
  --ball-line: #21182a;
}

.ball-preview.ultraball::before,
.pokemon-cursor.ultraball::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -1px;
  left: 50%;
  width: 15px;
  height: 12px;
  transform: translateX(-50%);
  background: #f0bd38;
  clip-path: polygon(0 0, 30% 0, 50% 52%, 70% 0, 100% 0, 70% 100%, 30% 100%);
}

.ball-preview.masterball,
.pokemon-cursor.masterball {
  --ball-top: #8d5ac7;
  --ball-bottom: #f7efff;
  --ball-line: #3e2852;
}

.ball-preview.masterball::before,
.pokemon-cursor.masterball::before {
  content: "M";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 9px;
  font-weight: 950;
  line-height: 12px;
}

.ball-preview.greatball,
.pokemon-cursor.greatball {
  --ball-top: #3576c8;
  --ball-bottom: #f4f7fb;
  --ball-line: #27344b;
}

.ball-preview.greatball::before,
.pokemon-cursor.greatball::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 2px;
  left: 50%;
  width: 18px;
  height: 6px;
  transform: translateX(-50%);
  border-left: 5px solid #e55768;
  border-right: 5px solid #e55768;
}

.ball-preview.quickball,
.pokemon-cursor.quickball {
  --ball-top: #2789c8;
  --ball-bottom: #eff8fc;
  --ball-line: #273641;
}

.ball-preview.quickball::before,
.pokemon-cursor.quickball::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -1px;
  left: 50%;
  width: 18px;
  height: 12px;
  transform: translateX(-50%);
  background: #f2ca3e;
  clip-path: polygon(42% 0, 58% 0, 65% 35%, 100% 42%, 100% 58%, 65% 64%, 58% 100%, 42% 100%, 35% 64%, 0 58%, 0 42%, 35% 35%);
}

.ball-preview.moonball,
.pokemon-cursor.moonball {
  --ball-top: #31476d;
  --ball-bottom: #eff3fb;
  --ball-line: #202b42;
}

.ball-preview.moonball::before,
.pokemon-cursor.moonball::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 1px;
  left: 50%;
  width: 11px;
  height: 11px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #f3d650;
  box-shadow: 4px -1px 0 #31476d;
}

.ball-preview.premierball,
.pokemon-cursor.premierball {
  --ball-top: #f6f2f5;
  --ball-bottom: #ffffff;
  --ball-line: #b83e56;
}

.ball-preview.premierball::before,
.pokemon-cursor.premierball::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 3px;
  border: 2px solid #d45c70;
  border-radius: 50%;
}

.pokemon-choice.active .ball-preview {
  border-color: var(--primary-strong);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 24%, transparent);
}

.outline-preview {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
}

.outline-preview img {
  width: 39px;
  height: 39px;
  max-width: none;
  object-fit: contain;
  image-rendering: pixelated;
  filter:
    brightness(0)
    saturate(100%)
    invert(29%)
    sepia(31%)
    saturate(1735%)
    hue-rotate(242deg)
    brightness(91%);
}

.pokemon-choice.active .outline-preview {
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--primary) 55%, transparent));
}

.pokemon-cursor {
  width: 27px;
  height: 27px;
  transform: translate(6px, 5px);
  box-shadow: 0 3px 7px rgba(30, 12, 44, 0.35);
}

.pokemon-cursor span {
  display: none;
}

.pokemon-cursor > img {
  display: none;
}

.pokemon-cursor.pokemon-outline {
  width: 38px;
  height: 38px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pokemon-cursor.pokemon-outline::before,
.pokemon-cursor.pokemon-outline::after {
  display: none;
}

.pokemon-cursor.pokemon-outline > img {
  position: static;
  top: auto;
  left: auto;
  display: block;
  width: 46px;
  height: 46px;
  max-width: none;
  object-fit: contain;
  image-rendering: pixelated;
  transform: none;
  filter:
    brightness(0)
    saturate(100%)
    invert(29%)
    sepia(31%)
    saturate(1735%)
    hue-rotate(242deg)
    brightness(91%)
    drop-shadow(0 2px 2px rgba(30, 12, 44, 0.3));
}

.modal-cursor {
  display: none !important;
}

body.custom-pokemon-cursor.dialog-open dialog[open] > .modal-cursor {
  display: block !important;
}

body.custom-pokemon-cursor.dialog-open #pokemonCursor {
  display: none !important;
}

body.dark .pokemon-cursor.pokemon-outline > img {
  filter:
    brightness(0)
    saturate(100%)
    invert(82%)
    sepia(18%)
    saturate(1050%)
    hue-rotate(218deg)
    brightness(108%)
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}


body.dark .pokemon-cursor {
  border-color: var(--ball-line);
  background: linear-gradient(to bottom, var(--ball-top) 0 43%, var(--ball-line) 43% 56%, var(--ball-bottom) 56% 100%);
}

@media (hover: none), (pointer: coarse) {
  body.custom-pokemon-cursor,
  body.custom-pokemon-cursor a,
  body.custom-pokemon-cursor button,
  body.custom-pokemon-cursor input,
  body.custom-pokemon-cursor select,
  body.custom-pokemon-cursor textarea,
  body.custom-pokemon-cursor .product-card {
    cursor: auto !important;
  }

  body.custom-pokemon-cursor .pokemon-cursor {
    display: none;
  }
}

.product-modal-card {
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.detail-left-column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.detail-set-highlights {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--panel) 84%, white 4%);
}

.detail-set-highlights-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.detail-set-highlights-head small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.detail-set-highlights-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

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

.detail-top-card-grid article {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 38%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 80%, var(--primary) 8%);
}

.detail-top-card-grid button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.detail-top-card-grid img {
  width: 100%;
  aspect-ratio: 2.5 / 3.5;
  object-fit: contain;
}

.detail-top-card-grid b,
.detail-top-card-grid small,
.detail-top-card-grid strong {
  display: block;
}

.detail-top-card-grid b {
  font-size: 0.82rem;
  line-height: 1.2;
}

.detail-top-card-grid small {
  color: var(--muted);
  font-size: 0.7rem;
}

.detail-top-card-grid strong {
  color: #32d9a0;
  font-size: 0.9rem;
}

/* Signature collector-catalog design */
body {
  background-color: var(--page);
  background-image:
    linear-gradient(color-mix(in srgb, var(--primary) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 7%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
}

.topbar {
  min-height: 72px;
  border-bottom: 2px solid var(--ink);
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--primary) 22%, transparent);
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 58px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 5px 5px 0 var(--primary);
  transform: rotate(-2deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid color-mix(in srgb, #ffffff 45%, transparent);
  border-radius: 3px;
  pointer-events: none;
}

.brand-mark b {
  font-size: 0.9rem;
}

.brand .brand-mark small {
  font-size: 0.56rem;
}

.brand > span:last-child > strong {
  font-size: 1.04rem;
  text-transform: uppercase;
}

.nav {
  gap: 6px;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 5px;
  color: var(--ink);
  font-weight: 800;
}

.nav a:hover {
  background: var(--panel-2);
}

.nav a::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 480px;
  align-items: center;
  padding: 66px 0 42px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 35px;
  width: 210px;
  aspect-ratio: 5 / 7;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--panel-2);
}

.hero::before {
  top: 28px;
  box-shadow: 12px 12px 0 var(--primary);
  transform: rotate(7deg);
}

.hero::after {
  top: 55px;
  right: 76px;
  background:
    linear-gradient(135deg, transparent 0 42%, color-mix(in srgb, var(--primary) 28%, transparent) 42% 48%, transparent 48%),
    var(--panel);
  transform: rotate(-5deg);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 7px 11px;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--primary) 58%, var(--panel));
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 0.98;
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-signals span {
  border-left: 3px solid var(--primary);
  padding: 5px 10px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.search-panel {
  position: relative;
  z-index: 2;
  border: 2px solid var(--ink);
  border-radius: 7px;
  box-shadow: 9px 9px 0 var(--primary);
}

.search-panel::before {
  content: "SEARCH / 001";
  position: absolute;
  top: -13px;
  right: 14px;
  padding: 3px 7px;
  background: var(--ink);
  color: var(--panel);
  font-size: 0.66rem;
  font-weight: 900;
}

.search-row input {
  border-width: 2px;
}

.search-row button {
  min-width: 72px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.metrics {
  gap: 0;
  border: 2px solid var(--ink);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--primary) 46%, transparent);
}

.metrics div {
  border: 0;
  border-right: 1px dashed var(--line);
  border-radius: 0;
  background: var(--panel);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  color: var(--primary-strong);
  font-size: 1.9rem;
}

.catalog {
  border: 0;
  border-radius: 0;
  padding: 28px 0 0;
  background: transparent;
  box-shadow: none;
}

.catalog-head {
  padding-bottom: 13px;
  border-bottom: 2px solid var(--ink);
}

.catalog-head h2 {
  font-size: 1.65rem;
  text-transform: uppercase;
}

.catalog-head h2::before,
.contact-copy h2::before {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: inset 0 0 0 4px var(--panel);
}

.filter-strip {
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--primary) 28%, transparent);
}

.product-list {
  counter-reset: catalog-item;
}

.product-card {
  position: relative;
  counter-increment: catalog-item;
  border: 2px solid var(--ink);
  border-radius: 7px;
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--primary) 22%, transparent);
  overflow: visible;
}

.product-card::before {
  content: counter(catalog-item, decimal-leading-zero);
  position: absolute;
  top: -2px;
  left: -38px;
  width: 30px;
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 950;
  text-align: right;
}

.product-card::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #74c7b8, #f0c65b);
}

.product-card:hover,
.product-card:focus-visible {
  border-color: var(--ink);
  box-shadow: 8px 8px 0 var(--primary);
  transform: translate(-2px, -2px);
}

.product-art {
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 4px 4px 0 rgba(20, 10, 30, 0.24);
}

.product-art::before {
  border-width: 1px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 5px 7px;
}

.price-line {
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--panel-2);
}

.price-line strong {
  color: var(--primary-strong);
}

.product-unit-price,
.offer-unit-price {
  color: var(--primary-strong);
  font-weight: 800;
}

.offer-unit-price {
  display: block;
  margin-top: 2px;
}

.stores {
  padding-top: 52px;
}

.store-grid {
  gap: 8px;
}

.store-card {
  position: relative;
  border: 1px solid var(--ink);
  border-radius: 5px;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--primary) 26%, transparent);
}

.alarm,
.contact {
  border: 2px solid var(--ink);
  border-radius: 7px;
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--primary) 42%, transparent);
}

.alarm {
  position: relative;
  overflow: hidden;
}

.alarm::before {
  content: "TARGET PRICE";
  position: absolute;
  top: 10px;
  right: -35px;
  width: 150px;
  padding: 4px 0;
  transform: rotate(36deg);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  text-align: center;
}

.site-footer {
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}

body.dark .topbar,
body.dark .metrics,
body.dark .search-panel,
body.dark .filter-strip,
body.dark .product-card,
body.dark .product-art,
body.dark .price-line,
body.dark .alarm,
body.dark .contact {
  border-color: #d8c2ed;
}

@media (max-width: 1050px) {
  .hero::before,
  .hero::after {
    opacity: 0.25;
  }

  .product-card::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics div:nth-child(2) {
    border-right: 0;
  }

  .metrics div:nth-child(-n+2) {
    border-bottom: 1px dashed var(--line);
  }
}

.product-modal .offers {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.modal-head {
  justify-content: space-between;
  gap: 16px;
}

.icon-button {
  width: 42px;
  padding: 0;
  font-size: 1.25rem;
}

@media (max-width: 1050px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .alarm,
  .contact,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .filter-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    grid-template-columns: 142px minmax(0, 1fr);
  }

  .product-side {
    grid-column: 1 / -1;
  }

  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tracking-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .tracking-prices {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  main {
    width: min(100% - 24px, 1220px);
  }

  .topbar,
  .catalog-head,
  .watchlist,
  .top-actions,
  .search-row,
  .alarm-form,
  .tracking-login {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    flex-direction: row;
  }

  .metrics,
  .filter-strip,
  .store-grid,
  .product-card,
  .tracking-summary,
  .tracking-card,
  .tracking-prices {
    grid-template-columns: 1fr;
  }

  .tracking-view-head {
    align-items: stretch;
    flex-direction: column;
  }

  .product-art {
    width: min(166px, 100%);
    min-height: 184px;
    max-height: 208px;
  }

  .tracking-art {
    width: 112px;
  }

  .tracking-prices {
    grid-column: auto;
  }
}

/* Final minimal theme overrides */
body {
  background: var(--page);
  background-image: none;
}

.topbar {
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.brand-mark {
  width: 44px;
  height: 52px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  transform: none;
}

.brand-mark::after,
.hero::before,
.hero::after,
.search-panel::before,
.product-card::before,
.product-card::after,
.alarm::before {
  display: none;
}

.brand > span:last-child > strong,
.catalog-head h2 {
  text-transform: none;
}

.hero {
  min-height: 420px;
  padding: 56px 0 36px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 4.7vw, 4.25rem);
  line-height: 1.03;
}

.eyebrow {
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  background: var(--panel-2);
}

.hero-signals span {
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}

.search-panel,
.filter-strip,
.metrics,
.product-card,
.alarm,
.contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(74, 42, 105, 0.08);
}

.search-panel {
  padding: 22px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.search-row input,
.search-row button {
  border-width: 1px;
  box-shadow: none;
}

.metrics,
.filter-strip,
.product-card {
  box-shadow: none;
}

.catalog-head {
  border-bottom: 1px solid var(--line);
}

.product-card {
  overflow: hidden;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  box-shadow: 0 14px 34px rgba(92, 52, 133, 0.13);
  transform: translateY(-2px);
}

.product-art,
.price-line,
.store-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: none;
}

.tag {
  border-radius: 999px;
}

.image-search-modal {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  border: 0;
  padding: 0;
  background: transparent;
  overflow: clip;
}

.image-search-modal::backdrop {
  background: rgba(22, 13, 34, 0.62);
  backdrop-filter: blur(4px);
}

.image-search-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(37, 20, 53, 0.28);
}

@media (max-width: 720px) {
  .search-row {
    grid-template-columns: 1fr 52px;
  }

  .search-row input {
    grid-column: 1 / -1;
  }

  .image-search-button {
    min-width: 52px;
    padding-inline: 0;
  }

  .image-search-button span:last-child {
    display: none;
  }
}

/* Restore the collector hero the user preferred */
body {
  background-color: var(--page);
  background-image:
    linear-gradient(color-mix(in srgb, var(--primary) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 7%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
}

.topbar {
  border-bottom: 2px solid color-mix(in srgb, var(--primary) 45%, var(--line));
  background: color-mix(in srgb, var(--panel) 96%, transparent);
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 58px;
  border: 2px solid color-mix(in srgb, #ffffff 70%, var(--line));
  border-radius: 7px;
  box-shadow: 5px 5px 0 var(--primary);
  transform: rotate(-2deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  display: block;
  border: 1px solid color-mix(in srgb, #ffffff 48%, transparent);
  border-radius: 3px;
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 480px;
  align-items: center;
  padding: 66px 0 42px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 35px;
  display: block;
  width: 210px;
  aspect-ratio: 5 / 7;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--panel-2);
}

.hero::before {
  top: 28px;
  box-shadow: 12px 12px 0 var(--primary);
  transform: rotate(7deg);
}

.hero::after {
  top: 55px;
  right: 76px;
  background:
    linear-gradient(135deg, transparent 0 42%, color-mix(in srgb, var(--primary) 28%, transparent) 42% 48%, transparent 48%),
    var(--panel);
  transform: rotate(-5deg);
}

.eyebrow {
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 7px 11px;
  background: var(--panel);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--primary) 58%, var(--panel));
}

.hero-signals span {
  border: 0;
  border-left: 3px solid var(--primary);
  border-radius: 0;
  box-shadow: none;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
}

.search-panel {
  position: relative;
  z-index: 2;
  border: 2px solid var(--ink);
  border-radius: 7px;
  box-shadow: 9px 9px 0 var(--primary);
}

.search-panel::before {
  content: "SEARCH / 001";
  position: absolute;
  top: -13px;
  right: 14px;
  display: block;
  padding: 3px 7px;
  background: var(--ink);
  color: var(--panel);
  font-size: 0.66rem;
  font-weight: 900;
}

@media (max-width: 1050px) {
  .hero::before,
  .hero::after {
    opacity: 0.25;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .hero::before,
  .hero::after {
    display: none;
  }
}

/* Beginner collection guide */
.beginner-guide {
  padding: 76px 0 18px;
  scroll-margin-top: 92px;
}

.guide-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.guide-heading h2 {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
}

.guide-heading p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.65;
}

.guide-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.guide-path {
  position: relative;
  min-height: 260px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.guide-path:last-child {
  border-right: 0;
}

.guide-path::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: var(--guide-accent, var(--primary));
}

.pokemon-path {
  --guide-accent: #d45467;
}

.one-piece-path {
  --guide-accent: #d3a53c;
}

.protection-path {
  --guide-accent: #54a99c;
}

.guide-number {
  display: block;
  margin-bottom: 42px;
  color: var(--guide-accent, var(--primary));
  font-size: 0.78rem;
  font-weight: 900;
}

.guide-path small {
  color: var(--guide-accent, var(--primary));
  font-weight: 900;
  text-transform: uppercase;
}

.guide-path h3 {
  margin: 7px 0 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.guide-path p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.guide-details {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding-top: 28px;
}

.guide-checklist,
.guide-faq {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}

.guide-checklist h3,
.guide-faq h3 {
  margin: 0 0 18px;
}

.guide-checklist ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.guide-checklist li span {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--primary-strong);
  font-size: 0.74rem;
  font-weight: 900;
}

.guide-faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.guide-faq summary {
  cursor: pointer;
  font-weight: 850;
}

.guide-faq details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .guide-paths {
    grid-template-columns: 1fr;
  }

  .guide-path {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .guide-path:last-child {
    border-bottom: 0;
  }

  .guide-number {
    margin-bottom: 22px;
  }

  .guide-details {
    grid-template-columns: 1fr;
  }
}

/* Collection advisor wizard */
.nav button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.nav button:hover {
  background: var(--panel-2);
}

.nav button::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav button:hover::after {
  transform: scaleX(1);
}

.nav-icon {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  color: currentColor;
}

.nav-products {
  border: 1.6px solid currentColor;
  border-radius: 4px;
  transform: rotate(-6deg);
}

.nav-products::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.nav-sets {
  border: 1.6px solid currentColor;
  border-radius: 3px;
  box-shadow: 4px 4px 0 -1.5px var(--panel), 4px 4px 0 0 currentColor;
}

.nav-sets::before,
.nav-sets::after {
  content: "";
  position: absolute;
  right: 3px;
  left: 3px;
  border-top: 1.5px solid currentColor;
}

.nav-sets::before { top: 6px; }
.nav-sets::after { top: 11px; }

.nav-stores {
  width: 18px;
  height: 18px;
  border: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 3h2l2.4 11.2a2 2 0 0 0 2 1.6h7.8a2 2 0 0 0 2-1.6L21 7H6M10 20a1 1 0 1 1-2 0 1 1 0 0 1 2 0m9 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 3h2l2.4 11.2a2 2 0 0 0 2 1.6h7.8a2 2 0 0 0 2-1.6L21 7H6M10 20a1 1 0 1 1-2 0 1 1 0 0 1 2 0m9 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nav-stores::before,
.nav-stores::after { display: none; }

.nav-games {
  width: 18px;
  height: 18px;
  border: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m2.5 3A1.5 1.5 0 1 0 7.5 9a1.5 1.5 0 0 0 0-3m9 0A1.5 1.5 0 1 0 16.5 9a1.5 1.5 0 0 0 0-3M12 10.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M7.5 15a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m9 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m2.5 3A1.5 1.5 0 1 0 7.5 9a1.5 1.5 0 0 0 0-3m9 0A1.5 1.5 0 1 0 16.5 9a1.5 1.5 0 0 0 0-3M12 10.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M7.5 15a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m9 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nav-games::before,
.nav-games::after { display: none; }

.nav-knowledge {
  border: 1.6px solid currentColor;
  border-radius: 4px;
}

.nav-knowledge::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 50%;
  border-left: 1.5px solid currentColor;
}

.nav-contact {
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.nav-contact::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.nav-pokeball {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.nav-pokeball::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 100%;
  border-top: 1.5px solid currentColor;
}

.nav-pokeball::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translate(-50%, -50%);
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: var(--panel);
}

.hero-guide-button {
  margin-top: 20px;
  padding: 11px 15px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: transparent;
  color: var(--primary-strong);
}

.hero-guide-button:hover {
  background: var(--panel-2);
}

.guide-modal {
  width: min(720px, calc(100% - 28px));
  height: min(760px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  padding: 0;
  background: transparent;
  overflow: clip;
}

.guide-modal::backdrop {
  background: rgba(20, 11, 31, 0.7);
  backdrop-filter: blur(5px);
}

.guide-wizard {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(color-mix(in srgb, var(--primary) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 6%, transparent) 1px, transparent 1px),
    var(--panel);
  background-size: 28px 28px;
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--primary);
}

.guide-wizard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.guide-wizard-head small {
  color: var(--primary-strong);
  font-weight: 900;
  text-transform: uppercase;
}

.guide-wizard-head h2 {
  max-width: 570px;
  margin: 8px 0 18px;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.guide-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-2);
}

.guide-progress i {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 220ms ease;
}

.guide-principle {
  display: grid;
  gap: 3px;
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--primary);
  background: color-mix(in srgb, var(--panel-2) 74%, transparent);
}

.guide-principle strong {
  color: var(--primary-strong);
  font-size: 0.88rem;
}

.guide-principle span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.guide-wizard-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 32px 0 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.guide-question-note {
  margin: -12px 0 18px;
  color: var(--muted);
}

.guide-intro {
  display: grid;
  gap: 17px;
  max-width: 620px;
  margin: 0 auto;
}

.guide-intro > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.guide-intro .guide-intro-lead {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.45;
}

.guide-intro-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-intro-themes span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 850;
}

.guide-intro-care {
  padding: 17px;
  border-left: 3px solid var(--primary);
  background: color-mix(in srgb, var(--panel-2) 76%, transparent);
}

.guide-intro-research {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.guide-intro-research strong {
  color: var(--primary-strong);
}

.guide-intro-research p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.guide-intro-care p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.guide-start-button {
  width: 100%;
  min-height: 48px;
  margin-top: 3px;
}

.guide-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-options button {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  color: var(--ink);
  font: inherit;
  font-weight: 820;
  text-align: left;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.guide-options button:hover {
  border-color: var(--primary);
  background: var(--panel-2);
  transform: translateY(-2px);
}

.guide-options button span {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--panel);
}

.guide-options button:hover span {
  background: var(--primary);
}

.guide-wizard-actions {
  min-height: 42px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.guide-wizard-actions .ghost-button {
  min-width: 92px;
}

.guide-result {
  display: grid;
  gap: 16px;
}

.guide-result-main {
  display: grid;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--primary);
  border-radius: 7px;
  background: var(--panel-2);
}

.guide-result-main small,
.guide-result-grid small {
  color: var(--primary-strong);
  font-weight: 900;
  text-transform: uppercase;
}

.guide-result-main strong {
  font-size: 1.3rem;
}

.guide-ethos {
  padding: 17px;
  border-left: 3px solid var(--primary);
  background: color-mix(in srgb, var(--panel-2) 72%, transparent);
}

.guide-ethos p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.guide-collection-path {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.guide-collection-path small {
  color: var(--primary-strong);
  font-weight: 900;
  text-transform: uppercase;
}

.guide-collection-path p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.guide-research-plan {
  padding: 17px;
  border: 1px solid color-mix(in srgb, var(--primary) 48%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel-2) 68%, var(--panel));
}

.guide-research-plan small {
  color: var(--primary-strong);
  font-weight: 900;
  text-transform: uppercase;
}

.guide-research-plan p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.guide-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-result-grid article {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.guide-result .guide-result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-result .guide-result-grid article:last-child {
  grid-column: 1 / -1;
}

.guide-result-grid p,
.guide-result-note {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.guide-result-note {
  font-size: 0.86rem;
}

.guide-value-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.guide-value-note strong {
  color: var(--ink);
}

.guide-products-button {
  width: 100%;
}

.guide-restart-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .guide-modal {
    width: calc(100% - 20px);
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
  }

  .guide-wizard {
    height: 100%;
    max-height: none;
    overflow: hidden;
    padding: 20px;
    box-shadow: 5px 5px 0 var(--primary);
  }

  .guide-options,
  .guide-result-grid {
    grid-template-columns: 1fr;
  }

  .guide-result .guide-result-grid {
    grid-template-columns: 1fr;
  }

  .guide-result .guide-result-grid article:last-child {
    grid-column: auto;
  }

  .guide-options button {
    min-height: 58px;
  }
}

/* Calm guide introduction */
.guide-wizard-head h2 {
  max-width: 520px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.guide-intro {
  max-width: 590px;
  gap: 20px;
}

.guide-intro .guide-intro-lead {
  max-width: 550px;
  font-size: 1.05rem;
  line-height: 1.55;
}

.guide-intro-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.guide-intro-list section {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.guide-intro-list section > span {
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 900;
}

.guide-intro-list strong {
  display: block;
  margin-bottom: 4px;
}

.guide-intro-list p,
.guide-intro-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.guide-intro-footnote {
  padding-left: 13px;
  border-left: 2px solid var(--primary);
}

.guide-intro .guide-start-button {
  margin-top: 0;
}

@media (max-width: 720px) {
  .guide-wizard-head h2 {
    font-size: 1.5rem;
  }

  .guide-wizard-body {
    padding-top: 22px;
  }
}

@media (min-width: 901px) {
  .modern-card-map {
    grid-template-rows: repeat(7, auto);
    row-gap: 5px;
  }

  .anatomy-original-card {
    grid-row: 1 / 8;
  }

  .modern-card-map .anatomy-callout.stage { grid-row: 1; }
  .modern-card-map .anatomy-callout.name { grid-row: 2; }
  .modern-card-map .anatomy-callout.art { grid-row: 3; }
  .modern-card-map .anatomy-callout.pokedex { grid-row: 4; }
  .modern-card-map .anatomy-callout.artist { grid-row: 5; }
  .modern-card-map .anatomy-callout.number { grid-row: 6; }
  .modern-card-map .anatomy-callout.rarity { grid-row: 7; }

  .modern-card-map .anatomy-callout.hp { grid-row: 2; }
  .modern-card-map .anatomy-callout.attack { grid-row: 3; }
  .modern-card-map .anatomy-callout.stats { grid-row: 4; }
  .modern-card-map .anatomy-callout.regulation { grid-row: 5; }
}

/* Compact catalog controls and explicit availability. */
.filter-strip {
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--primary) 20%, transparent);
}

.filter-strip label {
  gap: 4px;
  font-size: 0.76rem;
}

.filter-strip select {
  min-height: 38px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.filter-strip input[type="range"] {
  min-height: 22px;
}

.multi-filter {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.multi-filter details {
  position: relative;
}

.multi-filter summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 6px 34px 6px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  list-style: none;
}

.multi-filter summary::-webkit-details-marker {
  display: none;
}

.multi-filter summary::after {
  content: "⌄";
  position: absolute;
  right: 12px;
  font-size: 1rem;
}

.multi-filter-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  left: 0;
  width: max(100%, 190px);
  max-height: 260px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(38, 19, 56, 0.18);
}

.multi-filter-menu label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-radius: 5px;
  color: var(--ink);
  font-size: 0.82rem;
  cursor: pointer;
}

.multi-filter-menu label:hover {
  background: var(--panel-2);
}

.multi-filter-menu input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.filter-strip .checkbox {
  align-self: center;
  align-items: center;
  padding-bottom: 0;
  font-size: 0.82rem;
}

.stock-status-badge {
  justify-self: end;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, #c74b64 60%, var(--line));
  border-radius: 5px;
  background: color-mix(in srgb, #c74b64 10%, var(--panel));
  color: #b23850;
  font-size: 0.72rem;
  font-weight: 900;
}

.product-card.out-of-stock .product-art {
  opacity: 0.72;
}

.product-card.out-of-stock {
  background: color-mix(in srgb, var(--panel) 70%, #8b8790 30%);
  border-color: color-mix(in srgb, var(--line) 70%, #8b8790 30%);
  filter: saturate(0.45);
}

.product-card.out-of-stock .product-main,
.product-card.out-of-stock .product-side {
  opacity: 0.72;
}

.product-card.out-of-stock:hover,
.product-card.out-of-stock:focus-within {
  filter: saturate(0.65);
}

.product-card.out-of-stock .price-line strong,
.offer.out strong {
  color: var(--muted);
}

.offer.out {
  background: color-mix(in srgb, var(--panel) 84%, var(--page));
}

body.dark .stock-status-badge {
  color: #ff9eb1;
}

.price-line .store-listing-count {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.price-line .product-shipping {
  font-size: 0.76rem;
  font-weight: 700;
}

.offer-price {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.offer-price small {
  font-size: 0.72rem;
  white-space: nowrap;
}

/* Product-list search stays reachable while browsing the catalog. */
.catalog-search {
  position: sticky;
  top: 88px;
  z-index: 14;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: 0 5px 12px color-mix(in srgb, var(--ink) 10%, transparent);
  backdrop-filter: blur(14px);
}

.catalog-search label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.catalog-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px auto;
  gap: 7px;
}

.catalog-search-row input,
.catalog-search-row button {
  min-height: 40px;
}

.catalog-search-row input {
  width: 100%;
}

.catalog-search-row .catalog-search-clear {
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
}

.catalog-search-row button[type="submit"] {
  min-width: 74px;
}

body.dark .catalog-search {
  border-color: #d8c2ed;
}

.mobile-knowledge-button {
  display: none;
}

.mobile-menu-close,
.mobile-menu-backdrop {
  display: none;
}

.topbar .nav .mobile-menu-close {
  display: none !important;
}

@media (max-width: 1050px) {
  .mobile-knowledge-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 850;
  }

  .topbar .nav {
    position: fixed;
    z-index: 80;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(86vw, 340px);
    padding: 78px 20px 24px;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    background: color-mix(in srgb, var(--panel) 97%, transparent);
    box-shadow: 18px 0 50px rgba(12, 5, 22, .34);
    backdrop-filter: blur(18px);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  body.mobile-menu-open .topbar .nav {
    transform: translateX(0);
  }

  .topbar .nav a,
  .topbar .nav button:not(.mobile-menu-close) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 52px;
    padding: 12px 10px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font-size: 1rem;
    text-align: left;
  }

  .mobile-menu-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-2);
    color: var(--ink);
    font-size: 1.5rem;
  }

  .mobile-menu-backdrop {
    position: fixed;
    z-index: 70;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(9, 4, 16, .58);
    backdrop-filter: blur(2px);
  }

  .mobile-menu-backdrop[hidden] {
    display: none;
  }

  .brand {
    cursor: pointer;
  }
}

@media (max-width: 720px) {
  .knowledge-modal {
    width: calc(100% - 12px);
    height: calc(100dvh - 12px);
  }

  .knowledge-card > .modal-head {
    padding: 16px 16px 13px;
  }

  .knowledge-card > .modal-head h2 {
    font-size: 1.25rem;
  }

  .knowledge-tabs {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    padding: 0 10px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .knowledge-tabs button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 13px;
    border-bottom: 0;
    white-space: nowrap;
  }

  .knowledge-panel {
    padding: 16px;
  }

  .catalog-search {
    top: 88px;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .catalog-search label {
    display: none;
  }

  .catalog-search-row {
    grid-template-columns: minmax(0, 1fr) 38px 58px;
  }
}

/* Knowledge content scrolls below fixed controls. */
#glossaryPanel {
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
}

#glossaryPanel:not([hidden]) {
  display: grid;
}

#glossaryPanel .glossary-search {
  position: relative;
  top: auto;
  z-index: 2;
  margin: 0;
  padding: 0 0 12px;
  background: var(--panel);
}

#glossaryPanel .glossary-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

@media (max-width: 720px) {
  .product-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .product-art {
    grid-column: 1;
    width: 112px;
    min-height: 140px;
    max-height: 148px;
    padding: 8px;
  }

  .product-art.has-product-image .game-badge,
  .product-art.has-product-image strong,
  .product-art.has-product-image small {
    padding: 2px 4px;
    font-size: 0.65rem;
  }

  .product-main {
    grid-column: 2;
    align-self: start;
  }

  .product-card h3 {
    margin-top: 8px;
    font-size: 1rem;
    line-height: 1.25;
  }

  .product-main .tags {
    gap: 4px;
  }

  .product-main .tag {
    padding: 4px 7px;
    font-size: 0.65rem;
  }

  .product-main .meta {
    margin-top: 7px;
    font-size: 0.78rem;
  }

  .product-side {
    grid-column: 1 / -1;
    gap: 6px;
  }

  .price-line {
    padding: 10px 12px;
  }

  .price-line strong {
    font-size: 1.18rem;
  }

  .modern-card-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-top: 338px;
  }

  .anatomy-original-card {
    width: 230px;
  }

  .original-field {
    pointer-events: auto;
  }

  .modern-card-map .anatomy-callout,
  .modern-card-map .anatomy-callout.left,
  .modern-card-map .anatomy-callout.right {
    min-height: 48px;
    padding: 7px 8px;
  }

  .modern-card-map .anatomy-callout b {
    font-size: 0.72rem;
  }

  .modern-card-map .anatomy-callout span {
    font-size: 0.62rem;
  }

  .anatomy-intro p {
    font-size: 0.76rem;
  }

  .anatomy-note {
    font-size: 0.72rem;
  }
}

.detail-sort-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.detail-sort-row button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.72rem;
}

.detail-sort-row button.active {
  background: var(--primary);
  color: #fff;
}

.offer em {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 16%, transparent);
  color: var(--green);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.store-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 8px 0;
}

.store-rating button {
  min-height: 24px;
  padding: 0 1px;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 55%, transparent);
  font-size: 1rem;
  line-height: 1;
}

.store-rating button.active {
  color: #f0c65b;
}

.store-rating small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.store-comment {
  display: grid;
  gap: 4px;
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.store-comment input {
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--ink);
  font: inherit;
}

.store-review-submit {
  min-height: 32px;
  width: 100%;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
}

.product-modal {
  width: min(1120px, calc(100% - 18px));
  max-height: calc(100dvh - 16px);
  overflow: hidden;
}

.product-modal-card {
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
}

.product-modal .modal-head {
  margin-bottom: 10px;
}

.product-modal .product-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.product-card-list-button {
  min-width: 280px;
  padding: 11px 18px;
  border-color: color-mix(in srgb, var(--primary) 70%, var(--line));
  color: var(--primary-strong);
  white-space: nowrap;
}

.product-modal .detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  gap: 14px;
  height: min(640px, calc(100dvh - 170px));
  min-width: 0;
}

.product-modal .detail-grid > *,
.product-modal .detail-left-column {
  min-width: 0;
}

.product-modal .detail-store-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--panel) 84%, white 4%);
}

.product-modal .detail-store-head {
  display: grid;
  gap: 9px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--line);
}

.product-modal .detail-store-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.product-modal .chart-box {
  margin-top: 4px;
  padding: 8px 10px;
}

.product-modal .chart-box canvas {
  height: 96px;
}

.product-modal .chart-summary {
  margin-top: 5px;
  padding-top: 5px;
}

.product-modal .offers {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  gap: 8px;
  padding: 10px 6px 10px 0;
}

.product-modal .detail-top-card-grid img {
  height: 150px;
  max-height: 150px;
  aspect-ratio: auto;
}

.product-modal .detail-set-highlights {
  gap: 8px;
  padding: 10px;
}

.product-modal .detail-top-card-grid {
  gap: 8px;
}

.product-modal .detail-top-card-grid article {
  gap: 4px;
  padding: 6px;
}

.product-modal .detail-top-card-grid b {
  font-size: .76rem;
}

.product-modal .detail-top-card-grid small {
  font-size: .65rem;
}

.product-modal .product-card-list-button {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 12px;
}

.product-modal .offer {
  min-height: 92px;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
}

.product-modal .offer-corner-badges {
  position: static;
  grid-column: 1 / -1;
  margin-bottom: 3px;
}

.product-modal .offer-corner-badges span {
  min-height: 24px;
  padding: 4px 9px;
  font-size: .73rem;
}

.product-modal .detail-sort-row {
  gap: 8px;
  margin: 0;
  font-size: .82rem;
}

.product-modal .detail-sort-row button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: .78rem;
}

.product-modal .offer b {
  font-size: 1rem;
}

.product-modal .offer > div:first-of-type small {
  font-size: .8rem;
}

.product-modal .offer-price {
  gap: 3px;
}

.product-modal .offer-price strong {
  font-size: 1.08rem;
}

.product-modal .offer-price small {
  font-size: .78rem;
}

.product-modal .offer-price a {
  font-size: .94rem;
  font-weight: 850;
}

.product-modal .detail-actions,
.product-modal .alarm-action {
  margin: 0;
}

.product-modal .track-button,
.product-modal .price-alarm-button {
  width: 100%;
  min-height: 44px;
  font-size: .94rem;
}

.product-modal .detail-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  margin: 0;
}

.product-modal .detail-action-row > div {
  display: flex;
  min-width: 0;
}

.product-modal .alarm-status-row {
  display: flex;
  justify-content: flex-end;
  min-height: 18px;
  margin-top: 6px;
  color: var(--muted);
  font-size: .76rem;
  text-align: right;
}

.product-modal .detail-store-footer {
  padding: 10px 2px 0;
  border-top: 1px solid var(--line);
}

.product-modal .detail-store-footer .alarm-status-row {
  justify-content: center;
  margin-top: 7px;
  text-align: center;
}

.product-modal #detailTitle {
  max-width: 980px;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  line-height: 1.12;
  text-transform: none;
}

.product-modal #detailMeta {
  margin-top: 5px;
}

.profile-pokedex {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

body.profile-mode main > section:not(.profile-view),
body.tracking-mode main > section:not(.tracking-view) {
  display: none;
}

body.games-mode main > section:not(.game-hub) {
  display: none;
}

body.set-library-mode main > section:not(.set-library-view) {
  display: none;
}

body.set-library-mode main {
  width: 100%;
  max-width: none;
}

body.games-mode .game-hub {
  display: block;
  min-height: calc(100vh - 76px);
}

body.set-library-mode .set-library-view {
  display: block;
  min-height: calc(100vh - 76px);
}

.set-library-view {
  display: none;
  width: 100%;
  padding: 28px clamp(14px, 2vw, 34px) 60px;
}

.set-library-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.set-library-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: .98;
}

.set-library-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.set-library-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.set-library-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
}

.set-library-tabs > span {
  padding: 0 7px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.set-library-tabs button {
  min-height: 36px;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.set-library-tabs button.active {
  background: var(--primary);
  color: #fff;
}

.set-library-tabs.era-tabs button.active {
  background: color-mix(in srgb, var(--primary) 30%, var(--panel));
  color: var(--text);
}

.set-library-layout {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}

.set-library-sidebar,
.set-library-content {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
}

.set-library-sidebar {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.set-library-sidebar > small {
  color: var(--muted);
}

.set-library-sidebar h2 {
  margin: 0;
  line-height: 1.12;
}

.set-picker-code {
  display: inline-flex;
  justify-self: start;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: .78rem;
  font-weight: 950;
}

.set-picker-modal {
  width: min(820px, calc(100vw - 24px));
  max-height: min(820px, calc(100dvh - 24px));
  padding: 0;
  border: 0;
  background: transparent;
}

.set-picker-modal::backdrop {
  background: rgba(5, 2, 12, .78);
  backdrop-filter: blur(4px);
}

.set-picker-card {
  display: grid;
  gap: 14px;
  max-height: calc(100dvh - 24px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--text);
  overflow: hidden;
}

.set-picker-card .modal-head h2 {
  margin: 3px 0 0;
}

.set-picker-card > input {
  min-height: 46px;
}

.set-library-set-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 2px;
  overflow-y: auto;
}

.set-library-set-button {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.set-library-set-button:hover,
.set-library-set-button.active {
  border-color: var(--line);
  background: color-mix(in srgb, var(--primary) 13%, var(--panel));
}

.set-library-set-button.active {
  border-color: color-mix(in srgb, var(--primary) 70%, var(--line));
}

.set-library-set-button > span {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 4px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 950;
  letter-spacing: .02em;
}

.set-library-set-button div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.set-library-set-button b {
  overflow: hidden;
  font-size: .9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.set-library-set-button small,
.set-library-set-button i {
  color: var(--muted);
  font-style: normal;
}

.set-library-content {
  min-height: 560px;
  padding: 20px;
}

.set-library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.set-library-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.set-library-code {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-size: .76rem;
  font-weight: 950;
}

.set-library-detail-grid {
  display: grid;
  gap: 12px;
}

.set-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.set-library-grid article {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 88%, white 3%);
  transition: transform .18s ease, border-color .18s ease;
}

.set-library-grid article:hover {
  z-index: 1;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.set-library-grid img {
  width: 100%;
  aspect-ratio: 2.5 / 3.5;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.set-library-grid small {
  color: var(--muted);
}

.card-variant-list {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.card-variant-list summary {
  color: var(--primary-strong);
  font-size: .76rem;
  font-weight: 900;
  cursor: pointer;
}

.card-variant-list div {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.card-variant-list span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
}

.card-variant-list img {
  border-radius: 8px;
}

.card-zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  cursor: zoom-in;
  overflow: hidden;
}

.card-zoom-trigger:hover {
  transform: none;
}

.card-zoom-trigger img {
  display: block;
  transition: transform .2s ease;
}

.card-zoom-trigger:hover img {
  transform: scale(1.025);
}

.card-zoom-modal {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.card-zoom-modal::backdrop {
  background: rgba(5, 2, 12, .88);
  backdrop-filter: blur(5px);
}

.card-zoom-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .9fr);
  align-items: center;
  gap: 18px;
  max-height: calc(100dvh - 28px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
}

.card-zoom-card > img {
  width: 100%;
  max-height: calc(100dvh - 72px);
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.card-zoom-card > div {
  min-width: 0;
  max-width: 100%;
}

.card-zoom-card .icon-button {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
}

.card-zoom-card h2 {
  margin: 8px 0;
}

.card-zoom-card small {
  color: var(--primary-strong);
  font-weight: 900;
}

.card-zoom-card p {
  color: var(--muted);
}

@media (max-width: 760px) {
  .set-library-hero {
    align-items: start;
  }

  .set-library-hero .ghost-button {
    padding-inline: 10px;
  }

  .set-library-toolbar,
  .set-library-tabs {
    width: 100%;
  }

  .set-library-tabs {
    overflow-x: auto;
    border-radius: 16px;
  }

  .set-library-tabs > span {
    flex: 0 0 100%;
    padding-top: 4px;
  }

  .set-library-tabs button {
    flex: 1 0 auto;
  }

  .set-library-layout {
    grid-template-columns: 1fr;
  }

  .set-library-sidebar {
    position: static;
  }

  .set-library-set-list {
    grid-template-columns: 1fr;
  }

  .set-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-zoom-card {
    grid-template-columns: 1fr;
    gap: 10px;
    overflow-y: auto;
  }

  .card-zoom-card > img {
    max-height: 72dvh;
  }
}

@media (min-width: 1500px) {
  .set-library-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

.set-library-browser {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.set-library-detail {
  margin-top: 24px;
}

.set-library-detail-back {
  margin-bottom: 16px;
}

.set-library-detail .set-library-heading {
  position: sticky;
  z-index: 3;
  top: 70px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  backdrop-filter: blur(10px);
}

.set-library-browser-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.set-library-browser-head > div {
  display: grid;
  gap: 4px;
}

.set-library-browser-head small,
.set-library-search span {
  color: var(--muted);
}

.set-library-search {
  display: grid;
  gap: 5px;
  width: min(390px, 100%);
}

.set-library-search input {
  min-height: 44px;
}

.set-library-browser .set-library-set-list {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  padding: 0;
  overflow: visible;
}

.set-library-browser .set-library-set-button {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 116px auto;
  align-items: stretch;
  gap: 14px;
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 92%, white 3%);
  overflow: hidden;
}

.set-library-browser .set-library-set-button:hover,
.set-library-browser .set-library-set-button.active {
  border-color: color-mix(in srgb, var(--primary) 72%, var(--line));
  background: color-mix(in srgb, var(--primary) 8%, var(--panel));
  transform: translateY(-2px);
}

.set-library-browser .set-library-set-button.active {
  box-shadow: inset 0 0 0 1px var(--primary);
}

.set-library-set-title {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
}

.set-library-set-title span {
  flex: 0 0 auto;
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 5px;
  background: #34313b;
  color: #fff;
  font-size: .68rem;
  font-weight: 950;
}

.set-library-set-title b {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(.86rem, 1.1vw, 1rem);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.set-library-set-art {
  display: grid !important;
  place-items: center;
  height: 116px;
  min-height: 116px;
  overflow: hidden;
  padding: 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
}

.set-library-set-art img {
  display: block;
  width: min(86%, 220px);
  height: min(84px, 100%);
  max-width: 100%;
  max-height: 84px;
  object-fit: contain;
}

.set-library-set-art strong {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 24%, var(--panel));
  color: color-mix(in srgb, var(--primary) 74%, var(--text));
  font-size: 1.45rem;
  letter-spacing: .08em;
}

.set-library-text-logo {
  display: grid;
  place-items: center;
  gap: 6px;
  width: min(92%, 240px);
}

.set-library-card-fan {
  position: relative;
  display: grid;
  place-items: center;
  width: min(92%, 224px);
  height: 100%;
  min-height: 78px;
}

.set-library-card-fan > img {
  position: absolute;
  width: auto;
  height: 88px;
  max-height: 92%;
  border: 1px solid color-mix(in srgb, var(--line) 82%, white 18%);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(6, 2, 14, .22);
  object-fit: contain;
  transform:
    translateX(calc((var(--fan-index) - (var(--fan-count) - 1) / 2) * 38px))
    rotate(calc((var(--fan-index) - (var(--fan-count) - 1) / 2) * 7deg));
  transform-origin: center 110%;
}

.set-library-card-fan > img:nth-child(2) {
  z-index: 2;
}

.set-library-card-fan.pending .set-library-text-logo {
  opacity: .9;
}

.set-library-set-art small {
  max-width: 92%;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
}

.set-library-set-meta {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px !important;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
}

.set-library-set-meta span {
  color: var(--primary-strong);
  font-weight: 850;
}

.game-choice-card.coming-soon {
  position: relative;
  opacity: .68;
  cursor: not-allowed;
}

.game-choice-card.coming-soon > span {
  color: #ffd36b;
}

@media (max-width: 760px) {
  .set-library-browser-head {
    align-items: stretch;
    flex-direction: column;
  }

  .set-library-browser .set-library-set-list {
    grid-template-columns: 1fr;
  }
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.catalog-pagination label,
.catalog-pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-view {
  min-height: calc(100vh - 96px);
  padding: 34px clamp(16px, 4vw, 56px);
}

.profile-content {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 14px;
  align-items: start;
}

.profile-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}

.profile-panel h2,
.profile-panel small {
  margin: 0;
}

.profile-panel label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-weight: 850;
}

.profile-panel input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--ink);
  padding: 0 11px;
  font: inherit;
}

.avatar-field {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.profile-avatar-preview {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 34%, #ffffff 0 12%, transparent 13%),
    linear-gradient(var(--primary), var(--primary-strong));
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 18px color-mix(in srgb, var(--primary) 18%, transparent);
}

.profile-avatar-preview.has-avatar {
  background-color: var(--panel-2);
}

.google-login-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel-2) 92%, #ffffff);
  color: var(--ink);
  font-weight: 900;
}

.google-login-button::before {
  content: "G";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 7px;
  border-radius: 50%;
  background: #fff;
  color: #7c3aed;
  font-weight: 950;
}

.profile-review-list {
  display: grid;
  gap: 8px;
}

.profile-review-item {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
}

.profile-review-item div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.profile-review-item p,
.profile-review-item small,
.muted-empty {
  margin: 0;
  color: var(--muted);
}

.kanto-dex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.kanto-dex-slot {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 108px;
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  text-align: center;
}

.kanto-dex-slot img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) opacity(0.38);
}

.kanto-dex-slot.caught img {
  filter: none;
}

.kanto-dex-slot span,
.kanto-dex-slot strong {
  font-size: 0.68rem;
  line-height: 1.1;
}

.kanto-hint-card {
  display: grid;
  gap: 4px;
  max-width: 580px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--primary) 52%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
}

.kanto-hint-card span,
.kanto-hint-card small {
  color: var(--muted);
}

.profile-pokedex > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.profile-pokedex h3 {
  margin: 0;
  font-size: 1rem;
}

.profile-pokedex small {
  color: var(--muted);
}

#kantoProgress {
  color: var(--primary-strong);
  font-size: 1.15rem;
}

.caught-pokemon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.caught-pokemon-list span,
.caught-pokemon-list small {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.hero,
.catalog,
.stores,
.contact {
  position: relative;
}

.kanto-encounter {
  position: absolute;
  z-index: 6;
  right: clamp(8px, 3vw, 34px);
  top: clamp(16px, 9%, 76px);
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--primary) 42%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff 0 8%, #d9c0ff 9% 30%, #7f44c5 31% 100%);
  color: #fff;
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 22%, transparent);
  opacity: 0.24;
  transform: rotate(-8deg);
}

.kanto-encounter:nth-of-type(2n) {
  left: clamp(12px, 5vw, 56px);
  right: auto;
  top: auto;
  bottom: 18px;
}

.kanto-encounter span {
  display: block;
  width: 100%;
  height: 100%;
}

.kanto-encounter:hover,
.kanto-encounter:focus-visible {
  opacity: 0.95;
  transform: rotate(0deg) scale(1.08);
}

.kanto-modal {
  width: min(430px, calc(100% - 28px));
  border: 0;
  padding: 0;
  background: transparent;
}

.kanto-modal::backdrop {
  background: rgba(0, 0, 0, 0.58);
}

.kanto-card {
  text-align: center;
}

.kanto-catch-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 170px;
  margin: 6px 0 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 36%),
    var(--panel-2);
}

.kanto-pokemon-shadow {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border: 2px solid color-mix(in srgb, var(--primary) 70%, #ffffff);
  border-radius: 46% 54% 48% 52%;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 118px 118px;
  color: var(--primary-strong);
  font-size: 2.1rem;
  font-weight: 950;
  filter: brightness(0) saturate(100%) opacity(0.58);
}

.kanto-pokemon-shadow.caught {
  filter: none;
  background-color: color-mix(in srgb, var(--primary) 10%, #ffffff);
  opacity: 0;
}

.kanto-pokemon-shadow.capturing {
  animation: pokemonIntoBall 0.62s cubic-bezier(.4, 0, .2, 1) forwards;
}

.kanto-ball {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  border: 3px solid #2d173f;
  border-radius: 50%;
  background: linear-gradient(#f7f0ff 0 44%, #2d173f 45% 55%, #b783f0 56% 100%);
}

.kanto-ball::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 3px solid #2d173f;
  border-radius: 50%;
  background: #fff;
}

.kanto-ball.catching {
  animation: kantoThrow 0.95s ease-in-out both;
}

.kanto-ball.caught {
  animation: kantoCaught 0.46s ease-in-out both;
}

@keyframes kantoThrow {
  0% { transform: translate(-50%, 0) scale(1); }
  45% { transform: translate(-50%, -92px) scale(0.86); }
  70% { transform: translate(-50%, -52px) scale(1.02) rotate(-12deg); }
  85% { transform: translate(-50%, -52px) rotate(12deg); }
  100% { transform: translate(-50%, -52px) rotate(0deg); }
}

@keyframes kantoCaught {
  0%, 100% { transform: translate(-50%, -52px) rotate(0deg); }
  35% { transform: translate(-50%, -52px) rotate(-13deg); }
  70% { transform: translate(-50%, -52px) rotate(13deg); }
}

@keyframes pokemonIntoBall {
  0% { transform: translateY(0) scale(1); opacity: 1; filter: none; }
  65% { transform: translateY(58px) scale(.28) rotate(12deg); opacity: .8; }
  100% { transform: translateY(78px) scale(0); opacity: 0; }
}

.kanto-hidden-word {
  display: inline;
  padding: 0 3px;
  border: 0;
  border-radius: 4px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary-strong);
  font: inherit;
  font-weight: 950;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent);
  animation: hiddenWordGlow 2.4s ease-in-out infinite;
}

@keyframes hiddenWordGlow {
  50% { color: color-mix(in srgb, var(--primary-strong) 75%, #ffb703); box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 28%, transparent); }
}

.daily-kanto-balls,
.kanto-ball-counter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.daily-ball {
  width: 24px;
  height: 24px;
  border: 2px solid #2d173f;
  border-radius: 50%;
  background: linear-gradient(#e34b59 0 44%, #2d173f 45% 55%, #fff 56% 100%);
}

.daily-ball.used {
  filter: grayscale(1);
  opacity: .25;
}

.daily-kanto-hint {
  padding: 9px 11px;
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--muted);
}

.game-hub {
  display: none;
  padding: 52px clamp(18px, 5vw, 72px);
}

.quiz-shell {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
  gap: 14px;
}

.quiz-settings,
.quiz-stage {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.quiz-settings {
  display: grid;
  gap: 11px;
}

.quiz-settings label {
  display: grid;
  gap: 5px;
  font-weight: 850;
}

.quiz-stage h3 {
  margin: 6px 0 12px;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.quiz-options button {
  min-height: 52px;
}

.quiz-options button.correct {
  background: #1e9d74;
  color: #fff;
}

.quiz-options button.wrong {
  background: #c84d67;
  color: #fff;
}

.quiz-pokemon-image {
  display: block;
  width: min(230px, 70%);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 4px auto 14px;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.quiz-pokemon-image.silhouette {
  filter: brightness(0) saturate(100%);
}

.quiz-pokemon-image.silhouette.revealed {
  filter: none;
  animation: pokemonReveal .55s ease both;
}

@keyframes pokemonReveal {
  from { opacity: .35; transform: scale(.88); }
  to { opacity: 1; transform: scale(1); }
}

.quiz-answer-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
}

.profile-content {
  grid-template-columns: 230px minmax(0, 1fr);
}

.profile-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.profile-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.profile-sidebar-user div {
  display: grid;
}

.profile-sidebar nav {
  display: grid;
  gap: 6px;
}

.profile-sidebar nav button {
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.profile-sidebar nav button:hover,
.profile-sidebar nav button.active {
  border-color: var(--line);
  background: var(--panel-2);
  color: var(--primary-strong);
}

.profile-workspace,
.profile-tab-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.profile-tab-panel[hidden] {
  display: none;
}

.profile-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.profile-store-review-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
}

.profile-store-review-card > div:first-child {
  display: grid;
  gap: 2px;
}

.profile-store-review-card textarea {
  min-height: 78px;
  resize: vertical;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.profile-review-market > div:first-child p,
.kanto-hunt-profile p {
  margin: 7px 0 0;
  color: var(--muted);
}

.game-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.game-choice-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 210px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  text-align: left;
  isolation: isolate;
}

.game-choice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #2f8cff, #154fc8 56%, #13274d);
}

.game-choice-card.silhouette::before { background: linear-gradient(135deg, #9a63ef, #6233af 56%, #27134d); }
.game-choice-card.tier::before { background: linear-gradient(135deg, #f3c94b, #c58d18 56%, #5c3909); }
.game-choice-card.card-set::before { background: linear-gradient(135deg, #54c980, #238b55 56%, #123f2b); }
.game-choice-card.card-price::before { background: linear-gradient(135deg, #ff78b5, #cf3f82 56%, #612044); }
.game-choice-card.duel::before { background: linear-gradient(135deg, #ff665f, #c82d42 56%, #5d1728); }
.game-choice-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(22, 8, 34, .22); }
.game-choice-card span { justify-self: start; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: .76rem; }
.game-choice-card b { margin-top: 36px; font-size: clamp(1.4rem, 3vw, 2rem); }
.game-choice-card small { margin-top: 6px; color: rgba(255,255,255,.82); font-size: .92rem; }

.game-playground {
  display: grid;
  gap: 14px;
}

.game-playground[hidden],
.quiz-shell[hidden],
.tier-builder[hidden] {
  display: none;
}

.game-menu-button {
  justify-self: start;
}

.tier-builder {
  display: grid;
  gap: 14px;
}

.tier-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tier-builder-head h2 {
  margin: 2px 0 0;
}

.tier-head-actions {
  display: flex;
  align-items: end;
  gap: 9px;
}

.tier-head-actions label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.tier-head-actions select {
  min-height: 42px;
  padding: 0 34px 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.tier-board {
  display: grid;
  gap: 7px;
}

.tier-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--panel);
}

.tier-row.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 22%, transparent);
}

.tier-row.drag-over,
.tier-set-pool [data-tier-drop].drag-over {
  background: color-mix(in srgb, var(--primary) 12%, var(--panel));
}

.tier-label {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 10px;
  background: var(--primary);
  color: #fff;
}

.tier-label b {
  font-size: 1.4rem;
}

.tier-label input {
  width: 100%;
  min-height: 31px;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 6px;
  background: rgba(25, 10, 37, .2);
  color: #fff;
  text-align: center;
  font: inherit;
  font-size: .75rem;
}

.tier-row:nth-child(2) .tier-label { background: #bc5078; }
.tier-row:nth-child(3) .tier-label { background: #c8793d; }
.tier-row:nth-child(4) .tier-label { background: #638c76; }
.tier-row:nth-child(5) .tier-label { background: #596579; }

.tier-row > div,
.tier-set-pool > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 9px;
}

.tier-set-pool {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.tier-set-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: min(220px, 100%);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
  cursor: grab;
}

.tier-set-card:active {
  cursor: grabbing;
}

.tier-set-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.tier-set-image {
  width: 58px;
  height: 58px;
  border-radius: 7px;
  background: linear-gradient(135deg, #6e3ba2, #d28be9);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.tier-set-image.has-image {
  background-color: #fff;
}

.tier-set-card > div {
  display: grid;
  min-width: 0;
}

.tier-set-card b {
  color: var(--primary-strong);
  font-size: 1.05rem;
}

.tier-set-card small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tier-set-card > button {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 23px;
  min-height: 23px;
  padding: 0;
  border-radius: 50%;
}

.tier-pool-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.tier-pool-head h3,
.tier-pool-head small {
  margin: 0;
}

.tier-pool-head > div {
  display: grid;
  gap: 3px;
}

.tier-pool-head > span {
  color: var(--muted);
  font-size: .8rem;
}

.quiz-feedback {
  padding: 9px 11px;
  border-radius: 7px;
  font-weight: 850;
}

.quiz-feedback.correct {
  background: rgba(30, 157, 116, .15);
  color: #39d5a2;
}

.quiz-feedback.wrong {
  background: rgba(200, 77, 103, .16);
  color: #ff8ca6;
}

.duel-controls {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}

.duel-controls p,
.duel-controls small {
  margin: 0;
  color: var(--muted);
}

.duel-controls div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

@media (max-width: 720px) {
  .quiz-shell,
  .quiz-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .product-modal {
    overflow: auto;
  }

  .product-modal-card {
    max-height: none;
    overflow: visible;
  }

  .product-modal .detail-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .product-modal .offers {
    max-height: none;
  }

  .kanto-encounter {
    width: 18px;
    height: 18px;
  }

  .profile-view {
    padding: 18px 12px 28px;
  }

  .profile-content {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .profile-sidebar {
    position: static;
  }

  .profile-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-picker {
    grid-template-columns: 1fr;
  }

  .game-choice-card {
    min-height: 175px;
  }

  .tier-row {
    grid-template-columns: 92px 1fr;
  }

  .tier-builder-head,
  .tier-head-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tier-set-card {
    width: 100%;
  }

  .profile-panel {
    padding: 12px;
  }

  .kanto-dex-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
  }

  .kanto-dex-slot {
    min-height: 96px;
  }

  .product-modal #detailTitle {
    font-size: 1.08rem;
  }

  .product-modal .detail-actions,
  .product-modal .alarm-action {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-modal .modal-head {
    align-items: start;
  }

  .product-modal .product-modal-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .product-card-list-button {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
  }
}

.brand-mark {
  display: grid;
  place-items: center;
  align-content: center;
  width: 52px;
  height: 58px;
  border: 2px solid color-mix(in srgb, #ffffff 58%, var(--primary));
  border-radius: 9px;
  background: linear-gradient(145deg, #d9b8ff, #b87aef 62%, #9256d1);
  color: #fff;
  box-shadow:
    4px 4px 0 color-mix(in srgb, var(--primary) 36%, transparent),
    0 10px 24px color-mix(in srgb, var(--primary-strong) 18%, transparent);
  line-height: 1;
  transform: rotate(-2deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  display: block;
  border: 1px solid color-mix(in srgb, #ffffff 48%, transparent);
  border-radius: 5px;
  pointer-events: none;
}

.brand-mark b {
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: 0;
}

.brand .brand-mark small {
  margin-top: 2px;
  color: #f4e7ff;
  font-size: 0.5rem;
  font-weight: 950;
  opacity: 1;
  text-shadow: 0 1px 1px rgba(42, 18, 63, 0.28);
}

body:not(.dark) .brand-mark {
  background: linear-gradient(145deg, #d9b8ff, #9355dc 60%, #6e3dad);
}

body:not(.dark) .brand .brand-mark small {
  color: #3b1858;
  text-shadow: none;
}

body.dark .brand .brand-mark small {
  color: #f4e7ff;
  text-shadow: 0 1px 1px rgba(42, 18, 63, 0.28);
}

.auth-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.auth-visual-card {
  display: grid;
  grid-template-rows: 132px auto;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.auth-visual-card img {
  width: 100%;
  height: 100%;
  min-width: 0;
  border-radius: 6px;
  object-fit: cover;
  background: color-mix(in srgb, var(--panel) 72%, #ffffff);
}

.auth-visual-card strong,
.auth-visual-card small {
  display: block;
}

.auth-visual-card small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.mini-card-art,
.mini-pack-art {
  position: relative;
  display: block;
  width: 48px;
  height: 66px;
  border: 3px solid #f1dd62;
  border-radius: 6px;
  background: linear-gradient(#b9ee85 0 17%, #92d4ca 17% 55%, #c9ea68 55% 100%);
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--primary) 28%, transparent);
}

.mini-card-art::before {
  content: "";
  position: absolute;
  inset: 16px 6px auto;
  height: 18px;
  border-radius: 3px;
  background: color-mix(in srgb, #fff 45%, transparent);
}

.auth-visual-card.fake .mini-card-art {
  filter: saturate(1.7) blur(0.3px);
  transform: rotate(-2deg);
}

.mini-pack-art {
  border-color: var(--line);
  background: linear-gradient(135deg, #5e3b78, #b477e8 45%, #f0c65b);
}

.mini-pack-art::before {
  content: "";
  position: absolute;
  inset: 7px 12px;
  border-top: 2px dashed rgba(255,255,255,0.75);
  border-bottom: 2px dashed rgba(255,255,255,0.75);
}

@media (max-width: 720px) {
  .mobile-knowledge-button {
    min-height: 36px;
    padding: 6px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-knowledge-button span:last-child {
    display: none;
  }

  .mobile-knowledge-button .knowledge-book-icon {
    width: 28px;
    height: 32px;
  }

  .product-modal {
    width: calc(100% - 14px);
    max-height: calc(100dvh - 14px);
    overflow: auto;
  }

  .product-modal-card {
    max-height: none;
    padding: 14px;
  }

  .product-modal .offers {
    max-height: 48dvh;
    overflow-y: auto;
  }

  .offer {
    grid-template-columns: 1fr;
  }

  .offer-price {
    justify-items: start;
  }

  .auth-visual-grid {
    grid-template-columns: 1fr;
  }

  .auth-visual-card {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    min-height: 112px;
  }

  .auth-visual-card img {
    height: 92px;
  }
}

/* Small catalog summary instead of oversized statistic cards. */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: max-content;
  max-width: 100%;
  margin: 8px 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  box-shadow: none;
}

.metrics div {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 104px;
  padding: 7px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: inline;
  color: var(--primary-strong);
  font-size: 1rem;
  line-height: 1;
}

.metrics span {
  font-size: 0.72rem;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .metrics {
    width: 100%;
    margin: 6px 0 10px;
  }

  .metrics div {
    justify-content: center;
    min-width: 0;
    padding: 7px 3px;
  }

  .metrics strong {
    font-size: 0.88rem;
  }

  .metrics span {
    font-size: 0.6rem;
  }
}

@media (min-width: 1051px) {
  .hero {
    grid-template-rows: auto auto;
    align-items: start;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .hero .search-panel {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .hero-actions {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin-top: 12px;
  }

  .hero-actions .hero-signals {
    margin-top: 0;
  }

  .hero .metrics {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    width: 100%;
    margin: 12px 0 0;
    transform: none;
  }

  .hero .metrics div {
    justify-content: center;
    min-width: 0;
    padding-inline: 7px;
  }
}

.hero-actions {
  display: grid;
  align-content: start;
  width: max-content;
  max-width: 100%;
  gap: 6px;
}

.hero-guide-button {
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  text-align: center;
}

.search-magnifier {
  display: none;
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-magnifier::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

@media (max-width: 720px) {
  .hero {
    display: grid;
  }

  .hero-copy {
    order: 1;
  }

  .hero-actions {
    display: contents;
  }

  .hero-signals {
    order: 2;
    margin-top: 8px;
  }

  .hero .metrics {
    order: 3;
    margin-top: 2px;
  }

  .hero-guide-button {
    order: 4;
    justify-self: center;
    width: min(100%, 330px);
    margin-top: 4px;
    padding: 7px 10px;
    font-size: 0.84rem;
    font-weight: 800;
    text-align: center;
  }

  .hero .search-panel {
    order: 5;
    margin-top: 8px;
  }

  .catalog-search,
  .catalog-search-row,
  .catalog-search-row > * {
    min-width: 0;
  }

  .catalog-search {
    width: 100%;
    padding: 8px;
  }

  .catalog-search-row {
    grid-template-columns: minmax(0, 1fr) 34px 40px;
    gap: 5px;
  }

  .catalog-search-row .catalog-search-clear,
  .catalog-search-row button.catalog-search-submit[type="submit"] {
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .catalog-search-row button.catalog-search-submit[type="submit"] {
    display: grid;
    place-items: center;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    overflow: visible;
  }

  .search-magnifier {
    display: block;
    width: 14px;
    height: 14px;
    transform: translate(-1px, -1px);
  }

  .search-magnifier::after {
    right: -4px;
    bottom: -3px;
    width: 6px;
  }

  .search-submit-label {
    display: none;
  }
}

/* Remove legacy hero height and keep the intro compact at every width. */
.hero {
  min-height: 0;
  row-gap: 10px;
  padding-top: 42px;
  padding-bottom: 20px;
}

.hero-signals {
  margin-top: 8px;
}

@media (max-width: 1050px) and (min-width: 721px) {
  .hero {
    gap: 12px;
  }

  .hero-actions {
    margin-top: 0;
  }
}

.card-game-shell {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 18px;
}

.card-game-settings,
.card-game-stage {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 20px;
}

.card-game-settings {
  display: grid;
  align-content: start;
  gap: 14px;
}

.card-game-settings label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.card-game-settings select {
  width: 100%;
}

.card-game-note,
.card-reference-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.card-reference-note a {
  color: var(--primary-strong);
  font-weight: 800;
}

.rarity-filter {
  display: inline-grid;
  grid-template-columns: auto minmax(150px, 230px);
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 900;
}

.rarity-filter span {
  color: var(--muted);
  font-size: .78rem;
}

.rarity-filter select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel) 86%, white 4%);
  color: var(--text);
  font-weight: 800;
}

.card-catalog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.set-card-grid,
.set-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.set-card-grid article,
.set-cards-grid article {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--panel) 84%, white 4%);
}

.set-card-grid img,
.set-cards-grid img,
.set-quiz-card,
.price-card-duel img {
  width: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.set-card-grid img,
.set-cards-grid img {
  aspect-ratio: 2.5 / 3.5;
}

.set-card-grid .card-zoom-trigger,
.set-cards-grid .card-zoom-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.set-card-grid small,
.set-cards-grid small {
  color: var(--muted);
}

.card-rarity-badge {
  justify-self: start;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--primary) 42%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, var(--panel));
  color: color-mix(in srgb, var(--text) 82%, var(--primary));
  font-size: .68rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.set-library-card-fan.bulbapedia-visual img {
  position: static;
  width: min(92%, 160px);
  height: auto;
  max-height: 118px;
  margin: auto;
  transform: none;
  border-radius: 8px;
  object-fit: contain;
}

.card-inline-price {
  display: grid;
  gap: 3px;
  min-height: 34px;
  margin-top: 2px;
  padding: 7px 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel) 82%, var(--primary) 8%);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.card-inline-price span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--text);
}

.card-inline-price b {
  color: var(--muted);
  font-size: 0.68rem;
}

.card-inline-price em {
  color: #32d9a0;
  font-style: normal;
  white-space: nowrap;
}

.card-inline-price.empty {
  color: var(--muted);
}

.card-market-price {
  margin-top: 14px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
}

.card-market-price.loading {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 82%, var(--primary) 10%);
  font-weight: 800;
}

.card-price-panel {
  display: grid;
  gap: 9px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 56%, var(--line));
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 88%, var(--primary) 10%), color-mix(in srgb, var(--panel) 96%, black 5%));
  box-shadow: 0 12px 28px color-mix(in srgb, black 22%, transparent);
}

.card-price-panel-head {
  display: grid;
  gap: 2px;
  padding-bottom: 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.card-price-panel-head small,
.card-price-row small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-price-panel-head b {
  font-size: 1rem;
}

.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--panel) 76%, white 4%);
}

.card-price-row > div {
  display: grid;
  gap: 1px;
}

.card-price-row strong {
  font-size: 1.22rem;
}

.card-price-row span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.card-price-row em {
  color: color-mix(in srgb, var(--text) 82%, var(--primary));
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.card-price-row.tcgplayer {
  border-left: 4px solid #4aa7ff;
}

.card-price-row.cardmarket {
  border-left: 4px solid #32d9a0;
}

.card-price-row.optcg {
  border-left: 4px solid #f2b84b;
}

.card-price-chart {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--panel) 82%, white 3%);
}

.card-price-chart-head,
.tcgplayer-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-price-chart-head b,
.tcgplayer-current strong {
  font-size: .78rem;
}

.card-price-chart-head small,
.tcgplayer-current span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
}

.card-price-chart svg {
  width: 100%;
  height: 68px;
  overflow: hidden;
}

.card-price-chart line {
  stroke: color-mix(in srgb, var(--line) 70%, transparent);
  stroke-width: 1;
}

.card-price-chart polyline {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-price-chart polyline.tcgplayer {
  stroke: #4aa7ff;
}

.card-price-chart polyline.tcgplayer.reference {
  stroke-width: 2.5;
  stroke-dasharray: 7 5;
}

.card-price-chart polyline.cardmarket {
  stroke: #32d9a0;
}

.card-price-chart circle {
  fill: #32d9a0;
}

.card-price-chart-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
}

.card-price-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 7px;
  border-top: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  color: var(--muted);
  font-size: .66rem;
  font-weight: 900;
}

.card-price-chart-legend span::before {
  content: "";
  display: inline-block;
  width: 14px;
  margin-right: 5px;
  border-top: 3px solid;
  vertical-align: middle;
}

.card-price-chart-legend .cardmarket::before {
  border-color: #32d9a0;
}

.card-price-chart-legend .tcgplayer::before {
  border-color: #4aa7ff;
  border-top-style: dashed;
}

@media (max-width: 1050px) {
  .detail-set-highlights-head,
  .detail-top-card-grid {
    display: none;
  }

  .detail-set-highlights {
    padding: 0;
    border: 0;
    background: transparent;
  }
}

.set-cards-source {
  grid-column: 1 / -1;
}

.set-quiz-card {
  display: block;
  width: min(300px, 80%);
  max-height: 430px;
  margin: 16px auto;
}

.price-card-duel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.price-card-duel button {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 88%, white 4%);
  color: var(--text);
  text-align: left;
}

.price-card-duel button.correct {
  border-color: #32d9a0;
  box-shadow: 0 0 0 3px color-mix(in srgb, #32d9a0 20%, transparent);
}

.price-card-duel button.wrong {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px color-mix(in srgb, #ef4444 18%, transparent);
}

.price-card-duel button.wrong img {
  filter: grayscale(1) contrast(.92) brightness(.72);
}

.price-card-duel button.correct img {
  filter: saturate(1.12) contrast(1.04);
}

.price-card-duel button[disabled] {
  cursor: default;
  opacity: 1;
}

.price-card-duel [data-price-reveal] {
  display: block;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  font-weight: 900;
}

.price-card-duel button.correct [data-price-reveal] {
  background: color-mix(in srgb, #32d9a0 22%, transparent);
  color: #7cf7c9;
}

.price-card-duel button.wrong [data-price-reveal] {
  background: color-mix(in srgb, #ef4444 20%, transparent);
  color: #ffb4b4;
}

.price-next-round {
  margin-top: 14px;
  width: min(260px, 100%);
}

.set-cards-modal {
  width: min(1180px, calc(100vw - 30px));
  max-width: calc(100vw - 30px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  overflow: hidden;
}

.set-cards-modal-card {
  max-width: 100%;
  max-height: calc(100dvh - 26px);
  box-sizing: border-box;
  padding: 22px;
  overflow-y: auto;
  overflow-x: hidden;
}

.set-cards-modal-card > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 12px;
  background: var(--panel);
}

.set-cards-modal .set-cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr));
  width: 100%;
  min-width: 0;
}

.set-cards-modal .set-cards-grid article,
.set-cards-modal .set-cards-grid article > div,
.set-cards-modal .card-inline-price {
  min-width: 0;
  max-width: 100%;
}

.set-cards-modal .card-inline-price span {
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .card-game-shell {
    grid-template-columns: 1fr;
  }

  .price-card-duel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 1050px) {
  .topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    gap: 10px !important;
  }

  .topbar .nav {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 120 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: min(82vw, 320px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: calc(10px + env(safe-area-inset-top)) 18px calc(22px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    border-right: 1px solid var(--line) !important;
    background: var(--panel) !important;
    box-shadow: 18px 0 44px rgba(9, 4, 16, .4) !important;
    transform: translateX(-105%) !important;
    transition: transform 220ms ease !important;
  }

  body.mobile-menu-open .topbar .nav {
    transform: translateX(0) !important;
  }

  .topbar .nav a,
  .topbar .nav button:not(.mobile-menu-close) {
    min-height: 48px !important;
    width: 100% !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 4px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--ink) !important;
    font-size: 1rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  .topbar .nav a::after,
  .topbar .nav button:not(.mobile-menu-close)::after {
    display: none !important;
  }

  .mobile-menu-close {
    position: static !important;
    display: grid !important;
    place-items: center !important;
    align-self: flex-end !important;
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    background: var(--panel-2) !important;
    color: var(--ink) !important;
    font-size: 1.4rem !important;
  }

  .mobile-menu-backdrop {
    z-index: 110 !important;
  }
}

@media (min-width: 1051px) {
  .topbar {
    align-items: center;
    min-height: 78px;
    padding-block: 10px;
  }

  .topbar .nav {
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
  }

  .topbar .nav a,
  .topbar .nav button:not(.mobile-menu-close) {
    gap: 6px;
    min-width: 0;
    padding: 7px 8px;
    font-size: clamp(.72rem, .72vw, .92rem);
    line-height: 1.12;
    white-space: nowrap;
  }

  .topbar .nav a[href="#set-kutuphanesi"],
  .topbar .nav button#knowledgeButton,
  .topbar .nav a[href="#iletisim"],
  .topbar .nav button#guideButton {
    white-space: normal;
  }

  .topbar .nav .nav-icon,
  .topbar .nav .nav-pokeball {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
}

.set-library-browser .set-library-set-button {
  min-height: 250px;
}

.set-library-set-title {
  align-items: start;
}

.set-library-set-title b {
  font-size: clamp(.84rem, 1vw, 1rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.set-library-set-title span {
  font-size: .68rem;
  white-space: nowrap;
}

.set-library-set-art {
  height: 102px;
  min-height: 102px;
}

.set-library-set-art strong {
  min-width: 58px;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 10px;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  letter-spacing: .04em;
}

.set-library-text-logo {
  gap: 4px;
}

.set-library-text-logo small {
  font-size: .68rem;
  line-height: 1.15;
}
/* Denser desktop layout: matches the comfortable information density of 80% browser zoom. */
@media (min-width: 1051px) {
  html {
    font-size: 13px;
  }

  .topbar {
    min-height: 64px;
    gap: 18px;
    padding: 8px clamp(18px, 3vw, 44px);
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 38px;
    height: 46px;
  }

  .theme-card-icon,
  .account-card-icon {
    width: 24px;
    height: 30px;
  }

  .theme-toggle,
  .account-card-button {
    min-height: 34px;
  }

  .topbar .nav a,
  .topbar .nav button:not(.mobile-menu-close) {
    gap: 7px;
    padding: 6px 8px;
    font-size: 1rem;
  }

  .topbar .nav .nav-icon,
  .topbar .nav .nav-pokeball {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }

  .hero {
    min-height: 350px;
    gap: 22px;
    padding: 40px 0 20px;
  }

  .hero h1 {
    max-width: 680px;
    font-size: clamp(2.6rem, 4.1vw, 4.5rem);
  }

  input,
  select,
  button {
    min-height: 34px;
  }

  .search-panel {
    padding: 17px;
  }

  .filter-strip {
    gap: 8px;
    padding: 11px;
  }

  .tags {
    gap: 5px;
    margin-bottom: 7px;
  }

  .tag {
    padding: 4px 7px;
  }

  .product-card h3 {
    margin-bottom: 6px;
    font-size: 1.15rem;
  }
}

/* Product modal polish: keep the two columns balanced without breaking offer cards. */
.product-modal .detail-grid {
  align-items: stretch;
}

.product-modal .detail-store-panel {
  margin-top: 0;
}

.product-modal .offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
  align-items: center;
  flex: 0 0 auto;
  min-height: 104px;
  padding: 38px 12px 12px;
}

.product-modal .offer:not(:has(.offer-corner-badges)) {
  padding-top: 12px;
}

.product-modal .offer-corner-badges {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  grid-column: auto;
  margin: 0;
}

.product-modal .offer > div:first-of-type {
  min-width: 0;
}

.product-modal .offer > div:not(.offer-corner-badges) {
  display: grid;
  min-width: 0;
  position: static;
}

.product-modal .offer > .offer-corner-badges {
  position: absolute;
}

.product-modal .offer-price {
  display: grid;
  min-width: 118px;
  justify-items: end;
  text-align: right;
}

.product-modal .offer-price strong,
.product-modal .offer-price a {
  white-space: nowrap;
}

/* Restore the calmer original logo feel in both themes. */
.brand-mark {
  position: relative;
  width: 48px;
  height: 60px;
  border: 2px solid color-mix(in srgb, #ffffff 52%, var(--primary));
  border-radius: 8px;
  background: linear-gradient(145deg, #e2c7ff, #bc82ef 62%, #965bd2);
  box-shadow:
    5px 5px 0 color-mix(in srgb, var(--primary) 36%, transparent),
    0 8px 18px color-mix(in srgb, var(--primary-strong) 16%, transparent);
  transform: rotate(-2deg);
}

body:not(.dark) .brand-mark {
  background: linear-gradient(145deg, #7440ae, #542778 62%, #35154f);
}

body.dark .brand-mark {
  background: linear-gradient(145deg, #e2c7ff, #bc82ef 62%, #965bd2);
}

.brand-mark::after {
  inset: 5px;
  border-radius: 5px;
}

.brand-mark b {
  font-size: .88rem;
  color: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 900;
}

.brand .brand-mark small,
body:not(.dark) .brand .brand-mark small,
body.dark .brand .brand-mark small {
  color: #35154f;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: .5rem;
  font-weight: 800;
  text-shadow: none;
}

.brand > span:last-child {
  display: grid;
  gap: 2px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.brand > span:last-child > strong {
  color: #f9f5ff;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: none;
}

.brand > span:last-child > small {
  color: #cbbdd6;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

body:not(.dark) .brand > span:last-child > strong {
  color: #2e163d;
}

body:not(.dark) .brand > span:last-child > small {
  color: #74627e;
}

body:not(.dark) .brand .brand-mark small {
  color: #cda0f4;
}

@media (min-width: 1051px) {
  .brand-mark {
    width: 48px;
    height: 60px;
  }
}

@media (min-width: 721px) {
  .product-modal .detail-left-column {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
    height: 100%;
  }

  .product-modal .detail-set-highlights {
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
    min-height: 0;
  }

  .product-modal .detail-top-card-grid {
    align-items: stretch;
    min-height: 0;
  }

  .product-modal .detail-top-card-grid article {
    grid-template-rows: minmax(0, 1fr) auto auto auto;
    align-content: stretch;
  }

  .product-modal .detail-top-card-grid button {
    display: grid;
    align-items: center;
    min-height: 0;
  }

  .product-modal .detail-top-card-grid img {
    height: min(210px, 25dvh);
    max-height: none;
  }
}

@media (max-width: 720px) {
  .product-modal {
    width: calc(100% - 22px);
    max-height: calc(100dvh - 22px);
  }

  .product-modal-card {
    padding: 12px;
  }

  .product-modal .product-modal-head {
    gap: 10px;
  }

  .product-modal #detailTitle {
    font-size: 1.18rem;
    line-height: 1.12;
  }

  .product-modal #detailMeta {
    font-size: .95rem;
  }

  .product-modal .detail-grid {
    gap: 12px;
  }

  .product-modal .chart-box {
    padding: 10px;
  }

  .product-modal .chart-box canvas {
    height: 92px;
  }

  .product-modal .detail-store-panel {
    padding: 12px;
  }

  .product-modal .detail-store-head {
    gap: 10px;
  }

  .product-modal .detail-store-head h3 {
    font-size: 1.24rem;
  }

  .product-modal .detail-sort-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
  }

  .product-modal .detail-sort-row button {
    width: 100%;
    min-height: 38px;
  }

  .product-modal .offers {
    display: flex;
    flex-direction: column;
    max-height: 50dvh;
    padding: 10px 4px 10px 0;
  }

  .product-modal .offer {
    display: flex !important;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    min-height: 132px;
    height: auto !important;
    gap: 8px;
    padding: 10px;
  }

  .product-modal .offer:has(.offer-corner-badges) {
    padding-top: 10px;
  }

  .product-modal .offer > .offer-corner-badges {
    position: static !important;
    inset: auto !important;
    align-self: stretch;
    margin: 0 0 2px;
  }

  .product-modal .offer b {
    font-size: 1rem;
  }

  .product-modal .offer > div:first-of-type small {
    font-size: .82rem;
  }

  .product-modal .offer > div:first-of-type {
    display: grid;
    position: static !important;
  }

  .product-modal .offer-price {
    display: grid !important;
    width: 100%;
    min-width: 0;
    position: static !important;
    justify-items: start;
    text-align: left;
  }

  .product-modal .offer-price strong {
    font-size: 1.1rem;
  }

  .product-modal .offer-price small,
  .product-modal .offer-price a {
    font-size: .82rem;
    white-space: normal;
  }

  .product-modal .detail-action-row {
    grid-template-columns: 1fr;
  }

  .set-cards-modal {
    width: calc(100vw - 18px);
    max-width: calc(100vw - 18px);
  }

  .set-cards-modal-card {
    padding: 14px;
  }

  .set-card-grid,
  .set-cards-grid,
  .set-cards-modal .set-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .set-card-grid article,
  .set-cards-grid article {
    padding: 10px;
    overflow: hidden;
  }

  .set-card-grid img,
  .set-cards-grid img {
    max-height: min(420px, 58dvh);
  }

  .card-inline-price {
    font-size: .76rem;
  }

  .card-inline-price span {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 3px 8px;
  }

  .card-inline-price em {
    grid-column: 1 / -1;
    white-space: normal;
  }
}

.site-footer,
.legal-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  padding: 26px 0 38px;
  color: var(--muted);
  font-size: .86rem;
}

.site-footer span {
  flex-basis: 100%;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.site-footer a,
.legal-page a {
  color: var(--primary-strong);
  font-weight: 850;
}

.legal-page {
  display: grid;
  gap: 14px;
  padding: 42px 0 64px;
  color: var(--text);
}

.legal-page h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.legal-page h2 {
  margin: 14px 0 0;
  font-size: 1.25rem;
}

.legal-page p {
  max-width: 76ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.legal-body {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 72%, transparent), transparent 360px),
    var(--page);
}

.legal-shell {
  width: min(1080px, calc(100% - 32px));
  padding: 26px 0 72px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--ink);
}

.legal-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.legal-brand strong {
  font-size: 1.05rem;
}

.legal-brand small {
  color: var(--muted);
  font-size: .82rem;
}

.legal-hero {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 13%, transparent), transparent 48%),
    color-mix(in srgb, var(--panel) 94%, white 4%);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--primary-strong) 12%, transparent);
}

.legal-hero > span {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 48%, var(--line));
  border-radius: 999px;
  color: var(--primary-strong);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: .98;
}

.legal-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.legal-hero small {
  color: var(--muted);
  font-weight: 850;
}

.legal-card,
.legal-grid article {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 94%, white 3%);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--primary-strong) 8%, transparent);
}

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

.legal-card h2,
.legal-grid h2 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.legal-card ul,
.legal-grid ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.legal-notice {
  border-color: color-mix(in srgb, var(--primary) 52%, var(--line));
  background: color-mix(in srgb, var(--primary) 10%, var(--panel));
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 8px;
}

.legal-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--primary-strong);
  font-size: .88rem;
  font-weight: 900;
}

@media (max-width: 720px) {
  .legal-shell {
    width: min(100% - 22px, 1080px);
    padding-top: 16px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-hero {
    border-radius: 10px;
  }
}

.account-modal .modal-card {
  width: min(430px, calc(100vw - 26px));
  padding: 0;
  overflow: hidden;
}

.account-modal-head {
  align-items: start;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, transparent), transparent 58%),
    var(--panel);
}

.account-modal-head small {
  color: var(--primary-strong);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.account-modal-head h2 {
  margin: 5px 0 5px;
  font-size: 1.55rem;
}

.account-modal-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.account-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 18px 22px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-2) 72%, transparent);
}

.account-auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.account-auth-tabs button.active {
  background: var(--primary);
  color: #fff;
}

.account-fields {
  display: grid;
  gap: 12px;
  padding: 18px 22px 0;
}

.account-modal label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
}

.account-modal input {
  width: 100%;
  min-height: 44px;
}

#accountSubmitButton,
.account-modal .google-login-button,
.account-signout {
  width: calc(100% - 44px);
  margin: 14px 22px 0;
  min-height: 44px;
}

.account-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 14px 22px 0;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 850;
}

.account-divider::before,
.account-divider::after {
  content: "";
  border-top: 1px solid var(--line);
}

.account-session {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  margin: 18px 22px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-2) 72%, transparent);
}

.account-session-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, #d9b8ff, #8f5fda);
}

.account-session div {
  display: grid;
  gap: 2px;
}

.account-session small,
.account-session span {
  color: var(--muted);
}

.account-session strong {
  color: var(--ink);
}

.account-fineprint,
.account-modal .form-status {
  margin: 12px 22px 20px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}

.account-modal .form-status {
  min-height: 18px;
  font-weight: 850;
}

.account-modal .form-status.error {
  color: var(--red);
}
