@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: optional;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: optional;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: dark;
  --canvas: #14161a;
  --panel: #202228;
  --field: #282933;
  --hover: #32353f;
  --line: #353842;
  --ink: #ebecf0;
  --muted: #a4a8b2;
  --blue: #2663f0;
  --blue-hover: #3974ff;
  --link: #86acff;
  --tint: #213051;
  --tint-2: #2e2548;
  --tint-3: #382c29;
  --tint-4: #203530;
  --price-tint: #233760;
  --price-ink: #c6ddff;
  --saving-tint: #193931;
  --saving-ink: #a7edd0;
  --gutter: clamp(20px, 4vw, 64px);
  font-family: Inter, Arial, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --canvas: #fff;
    --panel: #fff;
    --field: #f2f4f7;
    --hover: #e9edf3;
    --line: #e1e3e8;
    --ink: #14161a;
    --muted: #626976;
    --blue: #1453ff;
    --blue-hover: #0642dc;
    --link: #154eda;
    --tint: #e8edff;
    --tint-2: #f1eaff;
    --tint-3: #fff0e7;
    --tint-4: #ddf5eb;
    --price-tint: #e4eeff;
    --price-ink: #103eaa;
    --saving-tint: #e2f5ea;
    --saving-ink: #12613c;
  }
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
body:has(dialog[open]) { overflow: hidden; }
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }
#catalog { scroll-margin-top: 78px; }
a { color: inherit; text-decoration: none; }
input, select, button, summary { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; }
button:disabled { cursor: default; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(100%, 1440px); padding-inline: var(--gutter); margin-inline: auto; }
.skip { position: fixed; z-index: 9; left: .8rem; top: -5rem; padding: .75rem; background: var(--canvas); }
.skip:focus { top: .7rem; }

.topbar {
  position: sticky; top: 0; z-index: 5;
  background: var(--canvas); border-bottom: 1px solid var(--line);
}
.bar { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 7px; font-size: 27px; line-height: 1; font-weight: 800; letter-spacing: -.073em; }
.brand img { display: block; width: 41px; height: 41px; }
.brand-like { font-weight: 630; }
.saved-trigger, .icon-btn { display: inline-flex; align-items: center; justify-content: center; }
.saved-trigger {
  position: relative; width: 44px; height: 40px;
  border-radius: 13px; background: var(--field); color: var(--ink);
}
.saved-trigger:hover, .icon-btn:hover { background: var(--hover); }
.saved-trigger svg { width: 21px; height: 21px; }
.saved-count {
  position: absolute; top: -3px; right: -3px; min-width: 17px; padding: 3px 4px;
  border: 1px solid var(--canvas); border-radius: 12px; background: var(--blue); color: #fff;
  text-align: center; font-size: 10px; line-height: 1; font-weight: 650; font-variant-numeric: tabular-nums;
}

.hero {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center;
  min-height: clamp(186px, 17.8vw, 247px);
  margin: 21px 0 22px; border-radius: 22px; color: #fff;
  background: radial-gradient(ellipse at 76% 35%, #6958de 0%, transparent 44%),
              radial-gradient(ellipse at 46% 100%, #3257db 0%, transparent 56%),
              linear-gradient(110deg, #182f75 2%, #2543a1 41%, #42369f 76%, #2a246c);
}
.hero::before {
  content: ""; pointer-events: none; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(ellipse at -8% 3%, #8bb3ff2e 0%, transparent 55%),
              linear-gradient(115deg, #17285840 20%, transparent 59%);
}
.hero h1 {
  position: relative; z-index: 2; padding-left: clamp(22px, 4vw, 58px);
  font-size: clamp(38px, 4.5vw, 67px); line-height: .985; font-weight: 760; letter-spacing: -.068em;
}
.hero h1 span { color: #d4ddff; }
.hero-visual { position: absolute; inset: 0 1.6% 0 46%; pointer-events: none; }
.hero-ring {
  position: absolute; left: -21%; top: 22%; width: 150%; height: 99%;
  border: 1px solid #d3d5ff44; border-radius: 50%; transform: rotate(-17deg); z-index: -1;
}
.ring-near { top: 25%; left: -5%; width: 143%; height: 86%; border-color: #d3d5ff25; }
.hero-model { display: block; position: absolute; object-fit: contain; filter: drop-shadow(0 12px 9px #10095750); }
.hero-1 { width: 30%; height: 80%; left: 0; top: 10%; transform: rotate(-15deg); }
.hero-2 { width: 39%; height: 96%; left: 26.5%; top: 0; z-index: 1; transform: rotate(7deg); }
.hero-3 { width: 30%; height: 78%; left: 66%; top: 12%; transform: rotate(13deg); }
.glint { position: absolute; width: 12px; height: 12px; background: #e3edff; opacity: .85; clip-path: polygon(50% 0,60% 39%,100% 50%,60% 61%,50% 100%,40% 61%,0 50%,40% 39%); }
.glint-one { top: 17%; left: 24%; }
.glint-two { top: 73%; left: 65%; width: 18px; height: 18px; }
.glint-three { top: 20%; right: 4%; width: 9px; height: 9px; }

#catalog { min-height: 50vh; padding-bottom: 44px; }
.archive-notice { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.archive-refresh { color: var(--link); background: transparent; font: inherit; }
.neutral-image { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); background: var(--field); }
.neutral-image svg { width: 32%; max-width: 68px; height: 32%; opacity: .46; }
.saved-link .neutral-image { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 12px; }
.facet-thumb.is-empty svg, .trait-thumb.is-empty svg { opacity: .55; color: var(--muted); }
.toolbar { display: grid; grid-template-columns: minmax(150px,1fr) minmax(96px,auto) minmax(210px,auto) auto; grid-template-areas: "search price sort reset"; align-items: stretch; gap: 9px; }
.toolbar > .search-box { grid-area: search; }
.toolbar > .price-control { grid-area: price; }
.toolbar > .sort-box { grid-area: sort; }
.reset-all { grid-area: reset; padding: 0 13px; border-radius: 11px; color: var(--link); font-size: 14px; font-weight: 600; white-space: nowrap; }
.reset-all:hover:not(:disabled) { background: var(--tint); }
.reset-all:disabled { color: var(--muted); }
.search-box, .control {
  display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 45px;
  border-radius: 13px; background: var(--field); color: var(--ink);
}
.search-box { flex: 1; padding: 0 15px; color: var(--muted); }
.search-box svg { width: 19px; height: 19px; }
.search-box:focus-within { outline: 2px solid var(--link); outline-offset: 1px; }
.search-box input { width: 100%; height: 43px; padding: 0; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 14px; }
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.control { padding-inline: 15px; justify-content: center; font-size: 14px; font-weight: 570; white-space: nowrap; }
.control:hover { background: var(--hover); }
.price-control.has-value { background: var(--tint); color: var(--link); }
.control svg { width: 17px; height: 17px; }
.price-control { gap: 8px; }
.price-control .chevron, #sortTrigger .chevron, .facet-sort-trigger .chevron { width: 13px; height: 13px; }
.sort-box, .facet-sort { position: relative; padding: 0; }
#sortTrigger, .facet-sort-trigger { width: 100%; height: 100%; justify-content: flex-start; }
#sortTrigger .chevron, .facet-sort-trigger .chevron { margin-left: auto; }
#sortTrigger[aria-expanded="true"] .chevron, .facet-sort-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.sort-menu { position: absolute; z-index: 7; top: calc(100% + 6px); right: 0; width: max(100%, 210px); max-width: calc(100vw - 24px); padding: 5px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 12px 32px #0003; transform-origin: top right; }
.sort-menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 43px; padding: 8px 12px; border-radius: 10px; background: transparent; text-align: left; font-size: 14px; }
.sort-menu button:hover, .sort-menu button:focus-visible { background: var(--field); }
.sort-menu button[aria-selected="true"] { color: var(--link); background: var(--tint); font-weight: 650; }
.sort-menu button[aria-selected="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--link); }
.facet-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin: 10px 0 20px; }
.facet-shortcuts button {
  display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 50px;
  padding: 5px 13px; background: var(--canvas); border: 1px solid var(--line); border-radius: 13px; text-align: left;
}
.facet-shortcuts button:hover { background: var(--field); }
.facet-shortcuts button.has-value { border-color: var(--link); }
.facet-shortcuts .chevron { margin-left: auto; width: 14px; height: 14px; color: var(--muted); }
.facet-thumb, .trait-thumb {
  display: inline-grid; place-items: center; overflow: hidden; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 9px; background: var(--field);
}
.facet-thumb img, .trait-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (prefers-color-scheme: light) {
  .symbol-thumb img { filter: brightness(.57) saturate(1.5); }
}
.facet-thumb svg, .trait-thumb svg { width: 19px; height: 19px; }
.facet-current { min-width: 0; display: grid; gap: 1px; }
.facet-label { font-size: 13px; font-weight: 600; }
.facet-current:has(.facet-value) .facet-label { font-size: 10px; font-weight: 500; color: var(--muted); }
.facet-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 620; }

.grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 26px 15px; }
.gift {
  --gift-name-size: clamp(15px,1.3vw,19px);
  --gift-number-size: 13px;
  --gift-price-size: 17px;
  --gift-name-line: calc(1.22 * var(--gift-name-size));
  --gift-number-line: calc(1.25 * var(--gift-number-size));
  --gift-price-line: calc(1.25 * var(--gift-price-size));
  position: relative; min-width: 0; contain: layout style;
}
.gift-link { display: block; border-radius: 14px; }
.picture { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; contain: strict; content-visibility: auto; overflow: hidden; border-radius: 15px; background: var(--field); }
.picture img, .detail-picture > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gift-body {
  display: grid; grid-template-columns: minmax(0,1fr); grid-template-areas: "name" "number" "price";
  grid-template-rows: var(--gift-name-line) var(--gift-number-line) minmax(calc(var(--gift-price-line) + 11px),auto);
  justify-items: start; gap: 3px; padding: 9px 1px 0;
}
.gift h3 { grid-area: name; max-width: 100%; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--gift-name-size); line-height: var(--gift-name-line); letter-spacing: -.043em; font-weight: 670; }
.gift-num, .detail-number { grid-area: number; color: var(--muted); font-variant-numeric: tabular-nums; }
.gift-num { font-size: var(--gift-number-size); line-height: var(--gift-number-line); }
.detail-number { font-size: 13px; line-height: 1.25; }
.gift-price { grid-area: price; margin-top: 3px; padding: 4px 10px; border-radius: 8px; white-space: nowrap; background: var(--price-tint); color: var(--price-ink); font-size: var(--gift-price-size); line-height: var(--gift-price-line); letter-spacing: -.032em; font-weight: 720; font-variant-numeric: tabular-nums; }
.gift-price svg { display: none; }
.gift-skeleton { pointer-events: none; }
.skeleton-name, .skeleton-number { align-self: center; border-radius: 4px; background: var(--field); }
.skeleton-name { grid-area: name; width: min(68%,126px); height: calc(.78 * var(--gift-name-size)); }
.skeleton-number { grid-area: number; width: min(38%,61px); height: calc(.74 * var(--gift-number-size)); }
.skeleton-price { grid-area: price; margin-top: 3px; width: min(70%,80px); border-radius: 8px; background: var(--field); }
.skeleton-heart { background: var(--hover); border-radius: 50%; }
.gift.is-unavailable .picture, .saved-row.is-unavailable .saved-link img, #detailContent.is-unavailable .detail-picture {
  filter: saturate(.58);
}
.gift-availability {
  display: inline-flex; align-items: center; max-width: 100%; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink);
  font-size: 13px; line-height: 1.25; font-weight: 570; letter-spacing: normal; white-space: normal;
}
.gift-body .gift-availability { grid-area: price; min-height: 29px; margin-top: 3px; }
.heart-btn, .icon-btn, .saved-remove { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; }
.heart-btn, .skeleton-heart { position: absolute; top: 7px; right: 7px; width: 32px; height: 32px; }
.heart-btn { background: #14172270; color: #fff; }
.heart-btn:hover { background: #171921b0; }
.heart-btn svg { width: 17px; height: 17px; stroke-width: 1.9; }
.hearted svg { fill: #ff5d86; stroke: #ff5d86; }
.heart-btn.hearted { background: #171822b3; }
.broken-caption { padding: 14px; color: var(--muted); font-size: 12px; text-align: center; }
.catalog-tail { display: flow-root; overflow-anchor: none; }
.catalog-tail:where(:has(.load-more:not([hidden]))) { min-height: 68px; }
.load-more { display: grid; place-items: center; width: 42px; height: 42px; margin: 24px auto 0; border-radius: 50%; color: var(--muted); background: var(--field); }
.auto-page .catalog-tail { position: relative; min-height: 0; }
.auto-page .load-more { position: absolute; left: 50%; top: 0; transform: translateX(-50%); margin: 0; opacity: 0; pointer-events: none; }
.auto-page .load-more:focus-visible { opacity: 1; pointer-events: auto; }
.load-more:hover { background: var(--hover); color: var(--ink); }
.back-to-top {
  position: fixed; z-index: 4; right: max(16px,calc((100vw - 1440px) / 2 + 16px),calc(env(safe-area-inset-right) + 8px));
  bottom: max(16px,calc(env(safe-area-inset-bottom) + 10px));
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--ink); box-shadow: 0 3px 12px #0003;
}
.back-to-top:hover, .back-to-top:focus-visible { background: var(--hover); }
.back-to-top svg { width: 20px; height: 20px; stroke-width: 2; }
body:has(dialog[open]) .back-to-top { visibility: hidden; }
.message { text-align: center; padding: 35px 16px; background: var(--field); border-radius: 16px; margin-block: 16px; }
.message h3 { font-size: 19px; letter-spacing: -.035em; }
.message p { margin: 8px 0; color: var(--muted); font-size: 13px; }
.message p:empty { display: none; }
.message .primary { margin-top: 12px; }
.primary, .secondary, .copy-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 43px;
  border-radius: 12px; padding: 8px 15px; font-size: 14px; line-height: 1.25; font-weight: 650;
}
.primary { background: var(--blue); color: white; }
.primary:hover { background: var(--blue-hover); }
.secondary, .copy-link, .icon-btn, .saved-remove { color: var(--ink); background: var(--field); }
.secondary:hover, .copy-link:hover, .saved-remove:hover { background: var(--hover); }
.icon-btn svg, .saved-remove svg { width: 18px; height: 18px; }
.retry-availability { color: var(--link); font-size: 13px; font-weight: 600; }
.retry-availability:hover, .copy-name:hover { text-decoration: underline; }
.clipboard-helper { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }

dialog {
  --window-height: var(--dialog-view-height, 100dvh);
  --window-top: var(--dialog-view-top, 0px);
  --top-gap: max(env(safe-area-inset-top), clamp(12px, calc(var(--window-height) * .085), 80px));
  --bottom-gap: max(12px, env(safe-area-inset-bottom));
  --space: calc(var(--window-height) - var(--top-gap) - var(--bottom-gap));
  position: fixed; inset: calc(var(--window-top) + var(--top-gap)) 0 auto; margin: 0 auto;
  padding: 0; max-width: calc(100% - 32px); max-height: var(--space); border: 1px solid var(--line);
  border-radius: 23px; background: var(--panel); color: var(--ink); box-shadow: 0 20px 80px #070b183b; overscroll-behavior: contain;
}
dialog::backdrop { background: #0b0f1c9c; }
.dialog-head, .filter-actions { display: flex; align-items: center; flex-shrink: 0; }
.dialog-head { justify-content: space-between; gap: 12px; padding: 19px 21px 13px; }
.dialog-head h2 { font-size: 25px; line-height: 1.1; letter-spacing: -.05em; }
dialog h2, .detail-info strong { color: var(--ink); }
.filter-dialog { width: 570px; overflow: hidden; }
#filterForm { display: flex; flex-direction: column; height: min(660px, calc(var(--space) - 2px)); overflow-y: auto; overscroll-behavior: contain; }
.facet-tabs { display: flex; padding: 1px 20px 10px; gap: 4px; flex-shrink: 0; }
.facet-tab { flex: 1; padding: 9px 4px; border-radius: 10px; background: var(--field); color: var(--muted); font-size: 13px; font-weight: 600; }
.facet-tab[aria-selected="true"], .facet-tab[aria-pressed="true"], .facet-tab.active { color: var(--link); background: var(--tint); }
.facet-tools {
  position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1fr) 152px;
  align-items: stretch; gap: 8px; margin: 0 20px 8px; flex-shrink: 0;
}
.facet-tools .search-box, .facet-sort-trigger { min-height: 44px; height: 44px; }
.facet-tools input { height: 42px; font-size: 14px; }
.facet-sort-trigger { padding-inline: 10px; gap: 6px; }
.facet-sort .sort-menu { width: 210px; max-width: calc(100vw - 54px); max-height: max(52px,calc(var(--space) - 180px)); overflow-y: auto; overscroll-behavior: contain; }
.filter-status { margin: 5px 20px 9px; font-size: 12px; color: var(--muted); }
.filter-status:empty { display: none; }
#filterModelGate {
  flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 18px 22px; text-align: center;
}
#filterModelGate h3 { font-size: clamp(20px, 2.5vw, 24px); font-weight: 670; line-height: 1.18; letter-spacing: -.04em; }
#filterModelGate p { max-width: 32ch; color: var(--muted); font-size: 15px; line-height: 1.45; }
#pickNft { min-width: 146px; min-height: 46px; margin-top: 7px; }
.facet-more { min-height: 38px; grid-column: 1/-1; border-radius: 10px; background: var(--field); color: var(--link); font-size: 13px; font-weight: 600; }
.facet-options { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); align-content: start; flex: 1; min-height: 0; gap: 7px; overflow: auto; overscroll-behavior: contain; padding: 3px 20px 12px; }
.facet-option { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 13px; padding: 6px 3px; text-align: center; background: var(--panel); }
.facet-option:hover { background: var(--field); }
.facet-option[aria-pressed="true"] { background: var(--tint); border-color: var(--link); }
.facet-option .facet-thumb { width: 56px; height: 56px; border-radius: 12px; background-color: transparent; }
.facet-option > .option-name, .collection-note { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.facet-option > .option-name { width: 100%; overflow-wrap: anywhere; font-size: 13px; line-height: 1.2; font-weight: 620; }
.facet-option .option-floor { display: block; min-height: 1.5em; margin-top: auto; padding-top: 2px; color: var(--price-ink); font-weight: 660; font-size: 12px; line-height: 1.3; }
.collection-note, .facet-option small { max-width: 100%; overflow-wrap: anywhere; font-size: 10px; line-height: 1.18; color: var(--muted); }
.facet-option .option-check { position: absolute; top: 5px; right: 5px; padding: 2px; width: 15px; height: 15px; background: var(--blue); color: white; border-radius: 50%; stroke-width: 2.4; }
.price-dialog { width: 440px; --top-gap: max(env(safe-area-inset-top), clamp(16px, calc(var(--window-height) * .16), 138px)); }
.price-fields { display: flex; gap: 8px; padding: 3px 20px 19px; }
.price-fields label { display: flex; align-items: center; gap: 8px; width: 50%; min-width: 0; padding: 0 11px; border-radius: 12px; background: var(--field); color: var(--muted); font-size: 15px; }
.price-fields label:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.price-fields input { width: 100%; min-width: 0; height: 48px; padding: 0; border: 0; border-radius: 0; outline: none; box-shadow: none; background: transparent; color: var(--ink); font-size: 17px; appearance: textfield; }
.price-fields input::-webkit-inner-spin-button { appearance: none; }
.filter-actions { gap: 8px; padding: 12px 20px 18px; border-top: 1px solid var(--line); }
.filter-actions .primary { flex: 1; }

.saved-panel {
  inset: var(--window-top) 0 auto auto; margin: 0; width: min(435px, 100%); max-width: 100%; height: var(--window-height); max-height: var(--window-height);
  border-radius: 22px 0 0 22px; display: none; padding-bottom: env(safe-area-inset-bottom);
}
.saved-panel[open] { display: flex; flex-direction: column; }
.saved-panel .dialog-head { flex-shrink: 0; border-bottom: 1px solid var(--line); }
.saved-list { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 2px 18px 12px; }
.saved-row { display: flex; align-items: center; gap: 9px; padding: 11px 1px; border-bottom: 1px solid var(--line); }
.saved-link { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.saved-link img { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; object-fit: cover; background: var(--field); }
.saved-copy { display: grid; min-width: 0; gap: 4px; }
.saved-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; letter-spacing: -.025em; }
.saved-copy small { font-size: 12px; color: var(--muted); }
.saved-price { margin-left: auto; font-size: 13px; white-space: nowrap; font-weight: 650; }
.saved-row.is-unavailable .saved-link {
  display: grid; grid-template-columns: 56px minmax(0,1fr) auto;
  grid-template-areas: "thumb copy status"; gap: 5px 9px;
}
.saved-row.is-unavailable .saved-link img { grid-area: thumb; }
.saved-row.is-unavailable .saved-copy { grid-area: copy; }
.saved-link .gift-availability { grid-area: status; justify-self: end; margin: 0; }
.saved-remove { width: 32px; height: 32px; }
.saved-empty { display: grid; gap: 12px; justify-items: center; color: var(--muted); margin: 42px 12px; font-size: 14px; }
.saved-empty svg { width: 32px; height: 32px; }

.detail-dialog { width: 780px; }
#detailContent { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: center; }
.detail-left { padding: 18px; min-width: 0; }
.detail-picture { position: relative; display: grid; place-items: center; overflow: hidden; width: 100%; aspect-ratio: 1; border-radius: 16px; background: var(--field); }
.anim-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.anim-layer.ready { opacity: 1; }
.anim-layer svg { width: 100%; height: 100%; stroke: none; }
.detail-info { min-width: 0; padding: 28px 22px 22px 1px; }
.detail-info h2 { padding-right: 22px; margin: 4px 0 0; font-size: clamp(26px,2.7vw,38px); line-height: 1.06; letter-spacing: -.055em; overflow-wrap: anywhere; }
.detail-info dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; margin: 0 0 14px; }
.trait-row { position: relative; min-width: 0; min-height: 51px; display: grid; align-content: center; row-gap: 2px; padding: 6px 6px 6px 47px; background: var(--field); border-radius: 10px; }
.trait-row .trait-thumb { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 35px; height: 35px; border-radius: 7px; }
.trait-row dt { font-size: 10px; line-height: 1.25; color: var(--muted); }
.trait-row dd { min-width: 0; font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; font-weight: 600; }
.rarity { display: block; color: var(--muted); font-size: 10px; font-weight: 500; font-variant-numeric: tabular-nums; }
.detail-pricing { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin: 0 0 12px; }
.sale-price, .gift-worth { min-width: 0; display: grid; align-content: center; gap: 4px; padding: 10px; border-radius: 11px; background: var(--price-tint); color: var(--price-ink); font-size: 13px; line-height: 1.25; font-weight: 570; }
.gift-worth { color: var(--ink); background: var(--field); }
.worth-label { display: flex; align-items: center; justify-content: space-between; gap: 3px; color: var(--muted); }
.worth-info { position: relative; flex: 0 0 21px; display: inline-grid; place-items: center; width: 21px; height: 21px; border: 1px solid currentColor; border-radius: 50%; color: inherit; font-size: 13px; font-weight: 650; line-height: 1; }
.worth-info::after { content: ""; position: absolute; inset: -8px -5px; }
.worth-info:hover, .worth-info[aria-expanded="true"] { background: color-mix(in srgb,currentColor 13%,transparent); }
.worth-tooltip { position: absolute; z-index: 3; right: 0; bottom: calc(100% + 7px); width: min(286px,100%); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); box-shadow: 0 7px 26px #0004; font-size: 14px; line-height: 1.4; font-weight: 450; text-align: left; }
.sale-saving { grid-column: 1 / -1; justify-self: start; max-width: 100%; margin: 1px 0 0; padding: 4px 8px; border-radius: 7px; background: var(--saving-tint); color: var(--saving-ink); font-size: 13px; font-weight: 610; line-height: 1.25; font-variant-numeric: tabular-nums; }
.detail-pricing strong { min-width: 0; overflow-wrap: anywhere; color: inherit; font-size: clamp(17px,2.2vw,24px); line-height: 1.14; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.offer-availability {
  margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--field); color: var(--ink); font-size: 15px; line-height: 1.3; font-weight: 650;
}
#detailContent.is-unavailable .sale-price { color: var(--muted); background: var(--field); }
#detailContent.is-unavailable .sale-price strong { font-size: clamp(16px,1.8vw,20px); font-weight: 600; }
.availability { font-size: 12px; line-height: 1.3; color: var(--muted); }
.availability { flex-basis: 100%; }
.retry-availability { margin-left: 4px; }
.detail-actions { display: flex; gap: 6px; }
.detail-actions .primary { flex: 1; }
.detail-actions .primary:disabled, .detail-actions .primary[aria-disabled="true"] { opacity: .65; cursor: default; }
.detail-actions .primary svg, .detail-actions .copy-link svg, .detail-actions .secondary svg { width: 17px; height: 17px; }
.detail-actions .secondary, .detail-actions .copy-link { padding-inline: 11px; }
.copy-name { display: inline-flex; align-items: center; min-height: 28px; gap: 6px; margin: 1px 0 11px; color: var(--muted); font-size: 13px; }
.copy-name svg { width: 13px; height: 13px; }
.close-detail { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; }
.detail-unavailable { grid-column: 1/-1; padding: 28px 20px; }
.detail-unavailable h2 { padding-right: 18px; font-size: 24px; }
.detail-unavailable p { color: var(--muted); font-size: 13px; margin: 8px 0; }
.toast { position: fixed; z-index: 10; bottom: max(16px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: 90%; padding: 11px 16px; background: var(--ink); color: var(--canvas); border-radius: 12px; box-shadow: 0 7px 23px #0002; text-align: center; font-size: 13px; }

@media (min-width: 1410px) {
  .grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
}
@media (max-width: 1050px) {
  .grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  :root { --gutter: 19px; }
  .hero { min-height: 171px; }
  .hero h1 { font-size: clamp(34px,5.5vw,44px); }
  .grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px 11px; }
}
@media (max-width: 600px) {
  :root { --gutter: 14px; }
  #catalog { scroll-margin-top: 59px; }
  .bar { height: 53px; }
  .brand { font-size: 24px; gap: 5px; }
  .brand img { width: 34px; height: 34px; }
  .saved-trigger { height: 44px; border-radius: 11px; }
  .hero { min-height: clamp(110px,28vw,153px); margin: 13px 0 14px; border-radius: 16px; }
  .hero h1 { padding-left: clamp(11px,3.8vw,23px); font-size: clamp(23px,5.8vw,33px); letter-spacing: -.061em; }
  .hero-visual { inset: 0 -.25% 0 54.5%; }
  .hero-1 { left: 0; top: -1%; height: 71%; width: 42%; transform: rotate(-17deg); }
  .hero-2 { left: 29%; top: 12%; height: 85%; width: 54%; }
  .hero-3 { left: 67%; top: 0; height: 57%; width: 33%; }
  .hero-ring { height: 85%; }
  .glint-one { width: 6px; height: 6px; top: 12%; left: 31%; }
  .glint-two { width: 8px; height: 8px; }
  .glint-three { display: none; }
  .toolbar { grid-template-columns: minmax(94px,.78fr) minmax(0,1.22fr) auto; grid-template-areas: "search search reset" "price sort sort"; gap: 6px; }
  .search-box, .control { min-height: 48px; height: 48px; border-radius: 12px; }
  .search-box { padding-inline: 9px; gap: 5px; }
  .search-box svg { width: 15px; height: 15px; }
  .search-box input { height: 45px; font-size: 16px; }
  .price-control { padding-inline: 12px; justify-content: space-between; font-size: 15px; }
  .reset-all { min-height: 46px; padding-inline: 7px; font-size: 14px; }
  #sortTrigger { padding-inline: 12px; gap: 8px; font-size: 15px; }
  .sort-menu button { min-height: 46px; font-size: 15px; }
  .facet-shortcuts { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin: 7px 0 15px; }
  .facet-shortcuts button { min-height: 48px; padding: 5px 9px; gap: 5px; border-radius: 11px; }
  .facet-shortcuts .facet-thumb { display: none; }
  .facet-shortcuts .chevron { width: 12px; height: 12px; }
  .facet-shortcuts .facet-value { font-size: 14px; line-height: 1.18; }
  .facet-shortcuts .facet-label { font-size: 15px; }
  .facet-shortcuts .has-value .facet-label { font-size: 11px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 9px; }
  .picture { border-radius: 12px; }
  .gift-body { padding-top: 7px; gap: 3px 5px; }
  .gift { --gift-name-size: 15px; --gift-number-size: 11px; --gift-price-size: 16px; }
  .gift-price { padding-inline: 9px; }
  .heart-btn, .skeleton-heart { width: 36px; height: 36px; top: 6px; right: 6px; }
  .heart-btn::before, .saved-remove::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; }
  .heart-btn svg { width: 17px; height: 17px; }
  dialog { --top-gap: max(env(safe-area-inset-top), clamp(8px, calc(var(--window-height) * .05), 32px)); --bottom-gap: max(8px,env(safe-area-inset-bottom)); width: min(440px,calc(100% - 16px)); max-width: calc(100% - 16px); border-radius: 20px; }
  .filter-dialog, .price-dialog { width: min(440px,calc(100% - 16px)); }
  .price-dialog { --top-gap: max(env(safe-area-inset-top), clamp(12px, calc(var(--window-height) * .09), 56px)); }
  #filterForm { height: min(730px, calc(var(--space) - 2px)); }
  .saved-panel { inset: calc(var(--window-top) + var(--top-gap)) 0 auto; margin: 0 auto; width: min(440px,calc(100% - 16px)); height: min(630px,var(--space)); max-height: var(--space); border-radius: 20px; padding-bottom: 0; }
  .dialog-head { padding: 10px 14px 8px; }
  .dialog-head h2 { font-size: 24px; }
  .dialog-head .icon-btn, .close-detail { width: 44px; height: 44px; }
  .facet-tabs { padding: 0 12px 8px; gap: 4px; }
  .facet-tab { min-height: 46px; padding: 8px 3px; font-size: 15px; }
  .facet-tools { grid-template-columns: minmax(0,1fr) 144px; margin: 0 12px 8px; gap: 6px; }
  .facet-tools .search-box, .facet-sort-trigger { height: 46px; min-height: 46px; }
  .facet-sort-trigger { font-size: 15px; }
  .facet-tools input { height: 44px; font-size: 16px; }
  #pickNft { min-height: 48px; font-size: 15px; }
  .facet-options { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 2px 12px 10px; gap: 6px; }
  .facet-option { border-radius: 11px; padding: 7px 4px; }
  .facet-option .facet-thumb { width: 52px; height: 52px; }
  .facet-option > .option-name { font-size: 14px; }
  .facet-option .option-floor { font-size: 13px; }
  .price-fields { padding: 4px 14px 18px; }
  .filter-actions { padding: 11px 12px; }
  .filter-actions .primary, .filter-actions .secondary { min-height: 48px; font-size: 15px; }
  .filter-status { margin-inline: 12px; }
  .detail-dialog { width: min(400px,100%); }
  #detailContent { display: block; }
  .detail-left { padding: 10px 10px 0; }
  .detail-picture { width: min(100%, calc(var(--window-height) * .32)); margin-inline: auto; border-radius: 13px; }
  .detail-info { padding: 11px 13px 14px; }
  .detail-info h2 { font-size: 26px; margin: 2px 0 0; }
  .detail-info dl { gap: 5px; margin-bottom: 10px; }
  .trait-row { padding-block: 5px; }
  .detail-pricing { margin-bottom: 9px; }
  .detail-pricing strong { font-size: clamp(17px,5.2vw,23px); }
  .detail-actions .primary, .detail-actions .copy-link, .detail-actions .secondary { min-height: 44px; }
  .copy-name { margin: 0 0 6px; }
  .saved-list { padding-inline: 12px; }
  .saved-row.is-unavailable .saved-link { grid-template-columns: 56px minmax(0,1fr); grid-template-areas: "thumb copy" "thumb status"; }
  .saved-row.is-unavailable .gift-availability { justify-self: start; }
  .gift-body .gift-availability { min-height: 28px; }
  .saved-remove { position: relative; width: 36px; height: 36px; }
}
@media (max-width: 430px) {
  .facet-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .facet-shortcuts button { padding-inline: 11px; }
}
@media (max-width: 360px) {
  :root { --gutter: 10px; }
  .hero-visual { left: 58%; }
  .hero h1 { font-size: 20px; }
}
@keyframes sheet-in { from { opacity: .72; transform: translateY(12px); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(10px); } }
@keyframes backdrop-in { from { background: transparent; } }
@keyframes backdrop-out { to { background: transparent; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes skeleton-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: no-preference) {
  .gift-skeleton:nth-child(-n+6) .picture::before {
    content: ""; position: absolute; inset: 0; opacity: 0; background: var(--hover);
    animation: skeleton-pulse 2s ease-in-out 400ms infinite;
  }
  dialog[open] { animation: sheet-in 160ms cubic-bezier(.2,.75,.3,1) both; }
  dialog[open]::backdrop { animation: backdrop-in 150ms ease-out both; }
  dialog.is-closing[open] { animation: sheet-out 120ms ease-in both; }
  dialog.is-closing[open]::backdrop { animation: backdrop-out 120ms ease-in both; }
  .sort-menu:not([hidden]) { animation: menu-in 140ms ease-out both; }
  .chevron { transition: transform 150ms ease-out; }
  .anim-layer { transition: opacity 100ms ease-out; }
  .control, .facet-shortcuts button, .facet-tab, .facet-option, .primary, .secondary, .sort-menu button, .heart-btn, .reset-all { transition: background-color 140ms, color 140ms, border-color 140ms; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

