:root {
  color-scheme: light;
  --bg: #d9efff;
  --sky: #8fcdea;
  --sky-soft: #c8e8f8;
  --periwinkle: #cbd6ff;
  --blush: #ffe0d5;
  --panel: rgba(248, 252, 255, 0.88);
  --panel-solid: #f8fcff;
  --panel-soft: rgba(217, 239, 255, 0.78);
  --line: rgba(92, 149, 184, 0.34);
  --text: #16344d;
  --muted: #58758b;
  --quiet: #7994a7;
  --accent: #82c6e8;
  --accent-strong: #2f83b4;
  --accent-soft: rgba(130, 198, 232, 0.24);
  --shadow: 0 18px 50px rgba(44, 111, 153, 0.1);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  background: var(--bg);
}
body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family:
    "Avenir Next", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
}
body::before {
  inset: -16%;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 34% 24% at 8% 14%,
      rgba(89, 178, 225, 0.52),
      transparent 72%
    ),
    radial-gradient(
      ellipse 31% 25% at 91% 10%,
      rgba(164, 180, 246, 0.46),
      transparent 74%
    ),
    radial-gradient(
      ellipse 30% 22% at 77% 72%,
      rgba(255, 196, 178, 0.34),
      transparent 75%
    ),
    radial-gradient(
      ellipse 29% 25% at 19% 83%,
      rgba(102, 188, 229, 0.42),
      transparent 74%
    );
  filter: blur(28px) saturate(108%);
  transform: rotate(-2deg) scale(1.06);
}
body::after {
  inset: -8%;
  z-index: 0;
  opacity: 0.72;
  background:
    radial-gradient(
      ellipse 22% 18% at 42% 8%,
      rgba(255, 255, 255, 0.72),
      transparent 78%
    ),
    radial-gradient(
      ellipse 24% 20% at 57% 44%,
      rgba(183, 216, 250, 0.44),
      transparent 76%
    ),
    radial-gradient(
      ellipse 20% 23% at 8% 53%,
      rgba(203, 214, 255, 0.38),
      transparent 78%
    ),
    radial-gradient(
      ellipse 20% 18% at 96% 92%,
      rgba(255, 224, 213, 0.38),
      transparent 78%
    );
  filter: blur(44px);
  transform: rotate(3deg) scale(1.08);
}

button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100% - 64px));
  margin-inline: auto;
  padding: 32px 0 84px;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(248, 252, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(118%);
  -webkit-backdrop-filter: blur(20px) saturate(118%);
}
.catalog-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.54);
}
.catalog-tab {
  border: 0;
  border-radius: 11px;
  padding: 10px 17px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.catalog-tab:hover {
  color: var(--text);
}
.catalog-tab.is-active {
  color: #143650;
  background: var(--accent);
  box-shadow: 0 8px 22px rgba(47, 131, 180, 0.16);
}
.catalog-tab:active,
.price-nav-button:active,
.pager-button:active,
.back-button:active,
.play-button:active {
  transform: translateY(1px) scale(0.985);
}
.catalog-tab:focus-visible,
.search-field:focus-within,
.check-control:has(input:focus-visible),
.price-select-field:focus-within,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 610px);
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}
.search-field:focus-within {
  border-color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}
.search-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--accent-strong);
}
.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}
.search-field input::placeholder {
  color: var(--quiet);
}
kbd {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--quiet);
  background: rgba(255, 255, 255, 0.52);
  font:
    10px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.filter-options {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.page-size-label {
  display: inline-flex;
  align-items: center;
}
.check-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.check-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check-box {
  width: 16px;
  height: 16px;
  border: 1px solid var(--quiet);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.46);
}
.check-control input:checked + .check-box {
  border-color: var(--accent-strong);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--panel-solid);
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 26px;
}
.catalog-layout.has-price-filter {
  grid-template-columns: 220px minmax(0, 1fr);
}
.price-filter {
  position: sticky;
  top: 24px;
  min-width: 0;
  max-height: calc(100dvh - 165px);
  padding: 16px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  background: rgba(248, 252, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
  scrollbar-width: thin;
  scrollbar-color: var(--sky) transparent;
}
.price-filter[hidden] {
  display: none;
}
.price-filter-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}
.price-filter-title {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}
.price-filter-heading span {
  color: var(--quiet);
  font-size: 11px;
}
.price-select-field {
  display: none;
}
.price-navigation {
  display: grid;
  gap: 6px;
}
.price-navigation[hidden] {
  display: none;
}
.price-nav-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.price-nav-button:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.58);
}
.price-nav-button.is-active {
  color: #143650;
  background: var(--accent-soft);
  border-color: rgba(47, 131, 180, 0.24);
}
.price-nav-count {
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}

.catalog-results {
  min-width: 0;
}
.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 1px 4px 14px;
  color: var(--muted);
  font-size: 13px;
}
.catalog-meta p {
  margin: 0;
}
.source-status {
  color: var(--quiet);
}
.source-status.is-stale {
  color: var(--accent-strong);
}

.gift-grid,
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.gift-card {
  min-height: 214px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid rgba(92, 149, 184, 0.3);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(44, 111, 153, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.gift-card:hover {
  border-color: rgba(47, 131, 180, 0.52);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(44, 111, 153, 0.12);
  transform: translateY(-3px);
}
.gift-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.gift-art {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  background: var(--sky-soft);
}
.gift-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gift-art.is-empty::after {
  content: "L";
  color: var(--quiet);
  font:
    28px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.gift-index {
  color: var(--quiet);
  font:
    10px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.gift-name {
  margin: 14px 0 3px;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.gift-count {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.gift-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 17px;
}
.gift-price {
  color: var(--text);
  font-size: 12px;
}
.gift-price span {
  display: block;
  color: var(--quiet);
  font-size: 11px;
}
.effect-note {
  color: var(--quiet);
  font-size: 11px;
  text-align: right;
}
.effect-note.is-available {
  color: var(--accent-strong);
}

.empty-state,
.error-state,
.detail-loading {
  padding: 76px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(248, 252, 255, 0.62);
  text-align: center;
}
.error-state strong,
.empty-state strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}
.skeleton-card {
  height: 214px;
  border-radius: var(--radius);
  background: linear-gradient(
    100deg,
    rgba(248, 252, 255, 0.72) 30%,
    rgba(200, 232, 248, 0.8) 50%,
    rgba(248, 252, 255, 0.72) 70%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 32px;
}
.pager-button,
.back-button,
.play-button {
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(248, 252, 255, 0.78);
  cursor: pointer;
}
.pager-button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
}
.pager-button.is-active {
  border-color: var(--accent-strong);
  color: var(--text);
  background: var(--accent-soft);
}
.pager-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.detail-view {
  max-width: 1240px;
  margin-inline: auto;
  animation: arrive 0.35s ease both;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.detail-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(248, 252, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px 10px 13px;
  border-color: transparent;
  color: #143650;
  background: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(47, 131, 180, 0.18);
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.back-button:hover {
  color: #fff;
  background: var(--accent-strong);
  box-shadow: 0 10px 26px rgba(47, 131, 180, 0.32);
}
.back-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.detail-title-group {
  min-width: 0;
}
.detail-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.detail-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}
.detail-section {
  margin-top: 30px;
}
.section-label {
  margin: 0 0 13px 4px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}
.code-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.code-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: repeat(5, auto);
  column-gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(248, 252, 255, 0.76);
  font-size: 12px;
}
.code-row > :nth-child(2) {
  grid-column: 1;
  grid-row: 1 / span 5;
}
.code-row.has-name {
  grid-template-rows: repeat(6, auto);
}
.code-row.has-name > :nth-child(2) {
  grid-row: 1 / span 6;
}
.code-row > :not(:nth-child(2)) {
  grid-column: 2;
}
.code-thumb {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--sky-soft);
}
.code-id {
  color: var(--text);
  font:
    12px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.code-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.code-price {
  color: var(--text);
  font-weight: 700;
}
.code-effect {
  color: var(--accent-strong);
  font:
    11px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.code-effect.is-empty {
  color: var(--quiet);
}
.code-description {
  display: grid;
  gap: 2px;
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(92, 149, 184, 0.2);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.code-description.is-empty {
  color: var(--quiet);
}
.code-description-label {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.metadata-hint {
  margin: -7px 4px 14px;
  color: var(--muted);
  font-size: 13px;
}
.metadata-list {
  display: grid;
  gap: 10px;
}
.metadata-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(248, 252, 255, 0.78);
  box-shadow: 0 8px 24px rgba(44, 111, 153, 0.06);
}
.metadata-item summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}
.metadata-item summary::-webkit-details-marker {
  display: none;
}
.metadata-item summary:hover,
.metadata-item summary:focus-visible {
  color: var(--accent-strong);
  background: var(--accent-soft);
  outline: none;
}
.metadata-id {
  color: var(--accent-strong);
  font:
    12px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.metadata-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.metadata-action {
  color: var(--muted);
  font-size: 12px;
}
.metadata-action::after {
  content: "＋";
  display: inline-block;
  margin-left: 8px;
  color: var(--accent-strong);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.18s ease;
}
.metadata-item[open] .metadata-action::after {
  transform: rotate(45deg);
}
.metadata-json {
  max-height: 440px;
  margin: 0;
  overflow: auto;
  padding: 18px;
  border-top: 1px solid rgba(92, 149, 184, 0.24);
  color: #d9efff;
  background: #16344d;
  font:
    12px/1.65 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  tab-size: 2;
}
.blind-box-output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.blind-box-output-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(248, 252, 255, 0.76);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.blind-box-output-card:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
}
.blind-box-output-card.is-entitlement {
  align-items: start;
  cursor: default;
}
.blind-box-output-card.is-entitlement:hover {
  border-color: var(--line);
  background: rgba(248, 252, 255, 0.76);
  transform: none;
}
.blind-box-output-art {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--sky-soft);
}
.blind-box-output-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.blind-box-output-content {
  min-width: 0;
}
.blind-box-output-content h3 {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.blind-box-output-price,
.blind-box-output-id {
  margin: 4px 0 0;
}
.blind-box-output-price {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.blind-box-output-id {
  overflow: hidden;
  font:
    11px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.blind-box-output-action {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}
.blind-box-probability-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 2px;
}
.blind-box-probability {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(92, 149, 184, 0.2);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(232, 246, 255, 0.58);
  font-size: 11px;
}
.blind-box-probability strong {
  color: var(--text);
  font-size: 12px;
}
.effects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 18px;
}
.effect-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 252, 255, 0.8);
  box-shadow: 0 14px 36px rgba(44, 111, 153, 0.08);
}
.effect-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.effect-title {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}
.effect-meta {
  margin: 4px 0 0;
  color: var(--quiet);
  font:
    11px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.effect-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(320px, 34vw, 510px);
  margin: 18px 0 14px;
  overflow: hidden;
  border-radius: 15px;
  background:
    radial-gradient(
      circle at 48% 44%,
      rgba(255, 255, 255, 0.86),
      transparent 46%
    ),
    linear-gradient(
      145deg,
      rgba(143, 205, 234, 0.42),
      rgba(203, 214, 255, 0.42) 58%,
      rgba(255, 224, 213, 0.36)
    );
}
.effect-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  image-rendering: auto;
}
.effect-stage::after {
  content: "点击播放预览";
  position: absolute;
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}
.effect-stage.is-playing::after,
.effect-stage.has-started::after {
  display: none;
}
.effect-stage.has-error::after {
  content: "B 站素材暂时不可播放";
  display: block;
  color: var(--accent-strong);
}
.effect-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.play-button {
  padding: 8px 12px;
  color: var(--text);
}
.effect-links {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}
.detail-note {
  margin: 18px 4px 0;
  color: var(--quiet);
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .page-shell {
    width: min(100% - 40px, 1100px);
  }
  .catalog-layout.has-price-filter {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px;
  }
  .gift-grid,
  .skeleton-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .search-field {
    width: 100%;
  }
  .filter-options {
    justify-content: flex-end;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 32px, 760px);
    padding: 22px 0 64px;
  }
  .catalog-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
    border-radius: 20px;
  }
  .catalog-switch {
    width: 100%;
  }
  .catalog-tab {
    flex: 1;
  }
  .filter-bar {
    gap: 12px;
  }
  .filter-options {
    justify-content: space-between;
  }
  .catalog-layout,
  .catalog-layout.has-price-filter {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 18px;
  }
  .price-filter {
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
  }
  .price-filter[hidden] {
    display: none;
  }
  .price-filter-heading {
    margin: 0;
  }
  .price-filter-heading span {
    display: none;
  }
  .price-navigation {
    display: none;
  }
  .price-select-field {
    display: block;
    min-width: 0;
  }
  .price-select-field select {
    width: 100%;
    min-height: 40px;
    padding: 8px 34px 8px 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
  }
  .gift-grid,
  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .gift-card {
    min-height: 198px;
    padding: 14px;
    border-radius: 17px;
  }
  .gift-art {
    width: 64px;
    height: 64px;
    border-radius: 13px;
  }
  .gift-name {
    margin-top: 11px;
    font-size: 16px;
  }
  .catalog-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .detail-heading {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }
  .back-button {
    justify-self: start;
  }
  .effects-grid {
    grid-template-columns: 1fr;
  }
  .blind-box-output-grid {
    grid-template-columns: 1fr;
  }
  .effect-stage {
    height: min(72vw, 430px);
  }
}

@media (max-width: 460px) {
  .page-shell {
    width: calc(100% - 24px);
  }
  .catalog-toolbar {
    padding: 10px;
  }
  .catalog-tab {
    padding-inline: 10px;
  }
  .filter-options {
    gap: 10px;
    font-size: 12px;
  }
  kbd {
    display: none;
  }
  .gift-card {
    min-height: 190px;
    padding: 12px;
  }
  .gift-art {
    width: 58px;
    height: 58px;
  }
  .gift-name {
    font-size: 15px;
  }
  .gift-count {
    font-size: 11px;
    white-space: nowrap;
  }
  .gift-bottom {
    gap: 6px;
    padding-top: 12px;
  }
  .gift-price {
    font-size: 11px;
  }
  .effect-note {
    font-size: 10px;
  }
  .price-filter {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .effect-controls {
    align-items: flex-start;
    flex-direction: column;
  }
  .effect-links {
    text-align: left;
  }
}

@media (max-width: 360px) {
  .gift-grid,
  .skeleton-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .catalog-toolbar,
  .price-filter,
  .gift-card,
  .detail-heading,
  .effect-card {
    background: var(--panel-solid);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
