/* Art & Treasures storefront. Built from explore/shop-balance/treasures.html by build-theme.py. Do not edit here. */
    /* ============ Tokens: Eldritch Exchange, celestial palette ============ */
    :root {
      --bg-0: #050818; --bg-1: #080d24; --bg-2: #0f1838; --bg-3: #16214a;
      --gold: #deb04a; --gold-bright: #f3cf72; --gold-deep: #a67a22;
      --cobalt: #3558d8; --cobalt-rgb: 53, 88, 216; --gold-rgb: 222, 176, 74;
      --ink: #f7f1e3; --ink-2: rgba(240, 234, 218, 0.80); --ink-3: rgba(220, 214, 200, 0.62);
      --line: rgba(170, 195, 255, 0.16); --line-hot: rgba(222, 176, 74, 0.5);
      --panel: rgba(160, 185, 255, 0.06); --panel-2: rgba(160, 185, 255, 0.11);
      --ok: #7fd4a0; --warn: #f3c98a; --bad: #ff9a8a;
      --grad-gold: linear-gradient(135deg, #f3cf72 0%, #d9a63c 55%, #a67a22 100%);
      --on-gold: #0a0f2a;
      --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --ease: cubic-bezier(0.22, 1, 0.36, 1);
      --r-card: 20px; --r-pill: 100px;
      --gutter: 16px;
      --tap: 44px;
    }
    @media (min-width: 760px) { :root { --gutter: 28px; } }

    *, *::before, *::after { box-sizing: border-box; }
    html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
    body { margin: 0; font-family: var(--font); background: var(--bg-1); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-size: 16px; }
    img { max-width: 100%; display: block; }
    a { color: var(--gold-bright); }
    button, input, select, textarea { font: inherit; color: inherit; }
    ::selection { background: var(--gold); color: var(--on-gold); }
    :focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; border-radius: 8px; }
    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    [hidden] { display: none !important; }

    /* living background */
    .bgfx { position: fixed; inset: 0; z-index: -3; pointer-events: none;
      background:
        radial-gradient(60% 45% at 85% -8%, rgba(var(--cobalt-rgb), 0.38), transparent 62%),
        radial-gradient(45% 40% at 0% 10%, rgba(var(--gold-rgb), 0.14), transparent 60%),
        radial-gradient(80% 60% at 50% 118%, rgba(28, 44, 120, 0.55), transparent 64%), var(--bg-0); }
    .bgfx::after { content: ""; position: absolute; inset: 0;
      background-image:
        radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,244,214,.9), transparent 60%),
        radial-gradient(1px 1px at 68% 8%, rgba(255,255,255,.7), transparent 60%),
        radial-gradient(1.4px 1.4px at 86% 42%, rgba(243,207,114,.85), transparent 60%),
        radial-gradient(1px 1px at 34% 62%, rgba(255,255,255,.6), transparent 60%),
        radial-gradient(1.2px 1.2px at 52% 88%, rgba(255,244,214,.7), transparent 60%);
      background-size: 320px 320px; }
    #sparkfx { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.7; }

    .wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }

    /* ============ Buttons ============ */
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 9px 18px;
      border-radius: var(--r-pill); border: 1px solid var(--line-hot); background: var(--panel); color: var(--ink);
      font-weight: 600; font-size: 0.92rem; text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background .2s var(--ease); }
    .btn:hover { background: var(--panel-2); }
    .btn:active { transform: scale(.98); }
    .btn.primary { background: var(--grad-gold); color: var(--on-gold); border-color: transparent; box-shadow: 0 10px 24px -14px rgba(var(--gold-rgb), .8); }
    .btn.block { width: 100%; }
    .btn.small { min-height: 36px; padding: 6px 12px; font-size: 0.84rem; font-weight: 500; }
    .btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
    .btn svg, .icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
    .link { background: none; border: 0; padding: 0; color: var(--gold-bright); cursor: pointer; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

    /* ============ Header ============ */
    .top { position: sticky; top: 0; z-index: 30; background: rgba(8, 13, 36, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
    .top .wrap { position: relative; display: flex; align-items: center; gap: 4px; min-height: 56px; }
    .top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
    .top .brand img { height: 26px; width: auto; }
    .top .brand span { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 0.82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); display: none; }   /* centered in the bar */
    @media (min-width: 560px) { .top .brand span { display: inline; } }
    .icon-btn { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
      min-width: var(--tap); min-height: var(--tap); padding: 2px 6px; border-radius: 12px; border: 0; background: none; cursor: pointer; color: var(--ink); text-decoration: none; }
    .icon-btn:hover { background: var(--panel); }
    .icon-btn .lbl { font-size: 0.68rem; font-weight: 500; color: var(--ink-2); }
    .count { position: absolute; top: 2px; right: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--grad-gold); color: var(--on-gold); font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; }
    .count:empty, .count[data-n="0"] { display: none; }

    /* ============ Sections ============ */
    section { padding-block: 18px; }
    @media (min-width: 760px) { section { padding-block: 28px; } }
    .sec-head { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 10px;
      padding-block: 12px; margin-bottom: 16px; }
    /* Full-width bar behind each section title, matching the nav bar */
    .sec-head::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
      background: rgba(8, 13, 36, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
      border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .sec-head h2 { margin: 0; font-size: clamp(1.25rem, 4.2vw, 1.8rem); line-height: 1.15; }
    /* Categories sit right under Just dropped, no title bar of their own */
    #newest { padding-top: 12px; padding-bottom: 8px; }
    /* 4 newest in one row: sideways scroll on phones, 4 across from 700px */
    .grid.newest-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x mandatory;
      scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); }
    .grid.newest-grid::-webkit-scrollbar { display: none; }
    @media (min-width: 480px) { .grid.newest-grid { grid-auto-columns: 30%; } }
    @media (min-width: 700px) { .grid.newest-grid { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; } }
    #categories { padding-top: 6px; padding-bottom: 8px; }
    #browse { padding-top: 6px; }
    .sec-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 0.92rem; }
    .accent { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; padding-right: .06em; }

    /* ============ Hero ============ */
    .hero { padding-top: 12px; padding-bottom: 0; }   /* same 12px gap above and below the hero tile */
    .hero-tile { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; border: 1px solid var(--line-hot); background: var(--bg-1);
      display: grid; place-items: center; min-height: 440px; }
    @media (min-width: 860px) { .hero-tile { min-height: 520px; } }
    /* Starfield video fills the tile; a soft scrim keeps the text readable. */
    .hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
    .hero-tile::before { content: ""; position: absolute; inset: 0; z-index: -1;
      background: radial-gradient(70% 60% at 50% 50%, rgba(5, 8, 24, .55), rgba(5, 8, 24, .2) 70%, rgba(5, 8, 24, .45)); }
    .hero-copy { width: 100%; max-width: 680px; padding: 32px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
    @media (min-width: 860px) { .hero-copy { padding: 48px 36px; } }
    .hero h1 { margin: 0; font-size: clamp(1.9rem, 7.2vw, 3.3rem); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; text-shadow: 0 2px 24px rgba(5, 8, 24, .6); }
    .hero .sub { margin: 0; color: var(--ink-2); font-size: 1.02rem; max-width: 40ch; }
    @media (min-width: 560px) { .hero .sub { max-width: none; white-space: nowrap; } }   /* one line whenever it fits */
    .hero-ctas { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 4px; width: 100%; max-width: 440px; }
    @media (min-width: 420px) { .hero-ctas { grid-template-columns: 1fr 1fr; } }
    .hero-trust { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 0.84rem; color: var(--ink-2); }
    .hero-trust li::before { content: "\2726  "; color: var(--gold-bright); }
    @media (prefers-reduced-motion: reduce) { .hero-video { display: none; } .hero-tile { background: var(--bg-1) url("https://eldritchexchange.co/wp-content/uploads/2026/09/treasures-hero-poster.jpg") center / cover; } }

    /* ============ Product cards ============ */
    .row { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
      margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
    .row::-webkit-scrollbar { display: none; }
    @media (min-width: 620px) { .row { grid-auto-columns: 30%; } }
    @media (min-width: 980px) { .row { grid-auto-columns: calc((100% - 48px) / 5); margin-inline: 0; padding-inline: 0; } }
    .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
    @media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; } }
    @media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
    .card { position: relative; display: flex; flex-direction: column; min-width: 0; scroll-snap-align: start;
      border-radius: var(--r-card); overflow: hidden; background: linear-gradient(170deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); }
    .card:hover { border-color: var(--line-hot); }
    .card-open { display: flex; flex-direction: column; flex: 1; padding: 0; border: 0; background: none; text-align: center; cursor: pointer; color: inherit; }
    .card-img { position: relative; aspect-ratio: 1; overflow: hidden; background: #fff; }
    .card-img img { width: 100%; height: 100%; object-fit: contain; }
    .card-text { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 10px 4px; }
    .card-name { font-size: 0.92rem; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .card-price { font-weight: 700; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
    .card-price .st { font-weight: 500; color: var(--ink-3); font-size: 0.85rem; }
    .card-cta { margin: 8px 10px 10px; min-height: 40px; padding: 7px 10px; font-size: 0.84rem; }
    .card-cta svg { width: 16px; height: 16px; }
    .card.is-sold .card-img img { filter: grayscale(.75); opacity: .55; }
    .tag { position: absolute; left: 8px; top: 8px; z-index: 1; font-size: 0.68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
      padding: 5px 9px; border-radius: var(--r-pill); background: var(--bg-1); color: var(--gold-bright); }
    .tag.feat { background: var(--grad-gold); color: var(--on-gold); }
    .tag.hold { color: #c3d0ff; }
    .tag.new { color: var(--gold-bright); }
    .n-photos { position: absolute; right: 8px; bottom: 8px; font-size: 0.68rem; padding: 3px 8px; border-radius: var(--r-pill); background: rgba(8, 13, 36, .78); color: #fff; }
    .heart { position: absolute; right: 4px; top: 4px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
      display: grid; place-items: center; background: rgba(8, 13, 36, .72); color: #fff; }
    .heart svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
    .heart[aria-pressed="true"] { color: #ff7a93; }
    .heart[aria-pressed="true"] svg { fill: currentColor; }

    /* ============ Categories ============ */
    /* Row 1: Original art, Celestial, Grandmacore as squares. Row 2: Fashion + Curiosities, shorter. Phones: one square per row. */
    .cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
    .cat { position: relative; grid-column: span 2; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px;
      border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); cursor: pointer; text-align: left; color: var(--ink); background: var(--bg-2); }
    .cat:nth-child(n+4) { grid-column: span 3; aspect-ratio: auto; min-height: 124px; }
    .cat:nth-child(-n+3) { align-items: center; text-align: center; }   /* top row: title + Shop centered (row 2 stays left, clear of the right-side pieces) */
    .cat:nth-child(-n+3) .cat-shop { align-self: center; }
    @media (min-width: 760px) { .cats { gap: 14px; } .cat { padding: 16px; } .cat:nth-child(n+4) { min-height: 190px; } }
    .cat:hover { border-color: var(--line-hot); }
    .cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .4s var(--ease); }
    .cat:hover img { transform: scale(1.04); }
    .cat img.cover-photo { opacity: 1; }
    .cat img.cover-cutout.fit-contain { object-fit: contain; object-position: right center; padding: 8px 8px 8px 52%; }   /* whole piece, right side, clear of the label */
    @media (min-width: 560px) { .cat img.cover-cutout.fit-contain { padding: 8px 12px 8px 40%; } }
    .cat .cat-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .cat img.cover-cutout { opacity: 1; object-fit: cover; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
    @media (prefers-reduced-motion: reduce) { .cat .cat-video { display: none; } }
    .cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(5, 8, 24, .92)); }
    .cat b, .cat .cat-shop { position: relative; z-index: 1; }
    .cat b { font-size: 0.76rem; line-height: 1.2; white-space: nowrap; letter-spacing: -0.01em; }
    /* Gold "Shop" pill under each title (the whole tile is the button, so this is just the visual cue) */
    .cat .cat-shop { align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; min-height: 26px; padding: 3px 12px; border-radius: var(--r-pill); background: var(--grad-gold); color: var(--on-gold); font-size: 0.72rem; font-weight: 600; box-shadow: 0 8px 18px -12px rgba(var(--gold-rgb), .8); transition: filter .2s; }
    .cat:hover .cat-shop { filter: brightness(1.08); }
    @media (min-width: 560px) { .cat b { font-size: clamp(1.1rem, 2.3vw, 1.5rem); } }
    @media (min-width: 560px) { .cat .cat-shop { margin-top: 8px; min-height: 32px; padding: 5px 18px; font-size: 0.86rem; } }
    /* Phones: one square tile per row, title + Shop centered; necklace and owl sit above the title */
    @media (max-width: 559px) {
      .cats { grid-template-columns: 1fr; gap: 12px; }
      .cat, .cat:nth-child(n+4) { grid-column: auto; aspect-ratio: 1; min-height: 0; padding: 18px; align-items: center; text-align: center; }
      .cat .cat-shop { align-self: center; margin-top: 10px; min-height: 36px; padding: 6px 22px; font-size: 0.9rem; }
      .cat b { font-size: 1.6rem; }
      .cat img.cover-cutout.fit-contain { object-position: center 30%; padding: 24px 24px 34%; }
    }

    /* ============ Browse: search, chips, filters ============ */
    .search { position: relative; }
    .search input { width: 100%; min-height: 46px; padding: 10px 14px 10px 44px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--panel); font-size: 1rem; }
    .search input:focus { outline: none; border-color: var(--gold); background: var(--panel-2); }
    .search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; stroke: var(--ink-3); fill: none; stroke-width: 2; }
    /* Category buttons span the search bar's width: 3 × 2 on phones, one row of 6 above 700px */
    .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
    @media (max-width: 899px) { .chips .chip { font-size: 0.78rem; padding-inline: 4px; } .chips .chip .n { margin-left: 3px; } }
    @media (min-width: 900px) { .chips { grid-template-columns: repeat(6, minmax(0, 1fr)); } }   /* 6 across only once "Grandmacore 8" fits */
    .chip { min-width: 0; white-space: nowrap; min-height: 38px; padding: 6px 8px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 0.92rem; font-weight: 500; color: var(--ink-2); }
    .chip[aria-pressed="true"] { background: var(--grad-gold); color: var(--on-gold); border-color: transparent; font-weight: 600; }
    .chip .n { opacity: .65; margin-left: 4px; font-weight: 500; }
    .filterbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 10px; }
    .result-n { color: var(--ink-3); font-size: 0.9rem; }
    .filters { display: grid; gap: 10px; padding: 14px; margin-bottom: 12px; border-radius: var(--r-card); background: var(--bg-2); border: 1px solid var(--line); }
    .filters fieldset { border: 0; margin: 0; padding: 0; }
    .filters legend { font-size: 0.8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
    .seg { display: flex; flex-wrap: wrap; gap: 8px; }
    .seg label { cursor: pointer; }
    .seg input { position: absolute; opacity: 0; pointer-events: none; }
    .seg span { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--panel); font-size: 0.9rem; }
    .seg input:checked + span { background: rgba(var(--gold-rgb), .16); border-color: var(--gold); color: var(--gold-bright); font-weight: 600; }
    .seg input:focus-visible + span { outline: 3px solid var(--gold-bright); outline-offset: 2px; }

    /* empty / helper states */
    .empty { text-align: center; padding: 20px 16px; border-radius: var(--r-card); border: 1px dashed var(--line-hot); background: rgba(8, 13, 36, .4); display: grid; gap: 12px; justify-items: center; }
    .empty h3 { margin: 0; font-size: 1.15rem; }
    .empty p { margin: 0; color: var(--ink-2); max-width: 40ch; }
    .empty .btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

    /* ============ Panels (forms, about, dibs) ============ */
    .panel { border-radius: 22px; border: 1px solid var(--line-hot); background: linear-gradient(165deg, rgba(22, 33, 74, .85), rgba(8, 13, 36, .92)); padding: 18px; }
    @media (min-width: 760px) { .panel { padding: 24px; } }
    .two { display: grid; gap: 14px; }
    @media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; gap: 20px; } }
    .field { display: grid; gap: 4px; margin-bottom: 10px; }
    .field label, .field .label { font-size: 0.88rem; font-weight: 600; }
    .field .opt { font-weight: 400; color: var(--ink-3); }
    .field input, .field select, .field textarea { width: 100%; min-height: var(--tap); padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 8, 24, .55); font-size: 1rem; }
    .field select option { background: var(--bg-2); }
    .field textarea { min-height: 88px; resize: vertical; }
    .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
    .field .hint { font-size: 0.82rem; color: var(--ink-3); }
    .field .err { font-size: 0.86rem; color: var(--bad); font-weight: 500; }
    .field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--bad); }
    .grid2 { display: grid; gap: 0 12px; }
    @media (min-width: 520px) { .grid2 { grid-template-columns: 1fr 1fr; } }
    .check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 8, 24, .45); cursor: pointer; margin-bottom: 8px; }
    .check input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--gold); }
    .check b { display: block; font-size: 0.95rem; }
    .check small { color: var(--ink-3); font-size: 0.8rem; }
    /* The last three tiles sit close together: 16px between them instead of 56px */
    #request { padding-bottom: 8px; }
    #about { padding-top: 8px; padding-bottom: 8px; }
    #dibs { padding-top: 8px; }
    /* Centered tiles (Request, About, First dibs): centered header + sub, content below at one width */
    .tile-c { max-width: 760px; margin: 0 auto; text-align: center; }
    .tile-c h2 { margin: 0 0 6px; font-size: clamp(1.25rem, 4.2vw, 1.8rem); }
    .tile-sub { margin: 0 auto 10px; max-width: 620px; color: var(--ink-2); }
    .tile-c > .tile-sub:last-of-type { margin-bottom: 18px; }
    .tile-c #req-about { margin: 0; }
    .tile-actions { display: grid; justify-items: center; gap: 2px; margin-top: 6px; text-align: center; }
    .tile-actions .btn { min-width: 240px; }
    /* Request */
    .req-form { text-align: left; margin-top: 18px; }
    .req-form textarea { min-height: 76px; }
    .req-row { display: grid; gap: 0 12px; }
    @media (min-width: 700px) { .req-row { grid-template-columns: 1fr 1fr 1.3fr; } }
    /* About: links centered, FAQ in two even columns */
    .about-links { justify-content: center; margin: 0 0 20px; }
    .faq-2 { text-align: left; }
    @media (min-width: 700px) { .faq-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; } .faq-2 details:nth-last-child(2) { border-bottom: 1px solid var(--line); } }
    /* First dibs */
    .dibs-topics { border: 0; padding: 0; margin: 0 0 20px; justify-content: center; }
    .dibs-topics legend { width: 100%; padding: 0; margin-bottom: 10px; font-size: 0.88rem; font-weight: 600; }
    .dibs-topics legend em { font-style: normal; font-weight: 400; color: var(--ink-3); margin-left: 4px; }
    .dibs-ways { display: grid; gap: 16px; text-align: left; }
    @media (min-width: 700px) { .dibs-ways { grid-template-columns: 1fr 1fr; gap: 20px; } }
    .dibs-ways .field { margin-bottom: 0; }
    .dibs-row { display: flex; gap: 8px; }
    .dibs-row input { flex: 1; min-width: 0; }
    .dibs-row .btn { flex: none; padding-inline: 18px; }
    .dibs-ways .done { text-align: center; }
    /* Request, About and First dibs: the hero's sparkle video behind the tile, dimmed so the form stays readable */
    .sparkle-panel { position: relative; overflow: hidden; isolation: isolate; background: none; }
    .sparkle-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
    .sparkle-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(165deg, rgba(8, 13, 36, .35), rgba(8, 13, 36, .7)); }
    @media (prefers-reduced-motion: reduce) { .sparkle-video { display: none; } }
    .fine { font-size: 0.78rem; color: var(--ink-3); margin: 8px 0 0; }
    .done { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 10px 0; }
    .done .big { font-size: 2rem; color: var(--gold-bright); line-height: 1; }
    .done h3 { margin: 0; font-size: 1.25rem; }
    .done p { margin: 0; color: var(--ink-2); max-width: 42ch; }

    .faq details { border-top: 1px solid var(--line); }
    .faq details:last-child { border-bottom: 1px solid var(--line); }
    .faq summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; padding: 10px 0; }
    .faq summary::-webkit-details-marker { display: none; }
    .faq summary::after { content: "+"; color: var(--gold-bright); font-size: 1.25rem; font-weight: 400; transition: transform .2s; }
    .faq details[open] summary::after { transform: rotate(45deg); }
    .faq p { margin: 0 0 10px; color: var(--ink-2); }

    .community { display: flex; flex-wrap: wrap; gap: 10px; }
    .community a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 0.9rem; }
    .community a:hover { color: var(--ink); border-color: var(--line-hot); }
    footer { padding: 20px 0 96px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.86rem; text-align: center; }
    footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px; }
    footer a { color: var(--ink-2); }
    .terms { max-width: 640px; margin: 16px auto 0; text-align: left; font-size: 0.8rem; color: var(--ink-3); }
    .terms summary { cursor: pointer; text-align: center; color: var(--ink-2); }
    .terms p { margin: 8px 0 0; }

    /* ============ Sheets (product, cart, saved) ============ */
    .sheet { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 94svh; color: var(--ink);
      background: linear-gradient(170deg, var(--bg-3), var(--bg-1) 55%); border-radius: 26px 26px 0 0; border-top: 1px solid var(--line-hot); overflow: hidden; }
    .sheet[open] { display: flex; flex-direction: column; animation: up .26s var(--ease); }
    @keyframes up { from { transform: translateY(30px); opacity: 0; } }
    .sheet::backdrop { background: rgba(3, 5, 16, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
    @media (min-width: 760px) {
      .sheet { margin: auto; max-width: 980px; max-height: 90dvh; border-radius: 28px; border: 1px solid var(--line-hot); }
      .sheet.side { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; max-width: 460px; border-radius: 0; border-width: 0 0 0 1px; }
    }
    .sheet-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line); flex: none; }
    .sheet-bar h2 { margin: 0; font-size: 1.1rem; flex: 1; }
    /* flex-basis auto (not 0): Safari/iPhone sizes the sheet from its content; a 0 basis collapsed every sheet to its header */
    .sheet-body { overflow-y: auto; padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; }
    .close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); cursor: pointer; display: grid; place-items: center; font-size: 1.5rem; line-height: 1; color: var(--ink); }
    .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
    @media (min-width: 760px) { .grab { display: none; } }

    /* product view */
    .pv { display: grid; gap: 14px; }
    @media (min-width: 760px) { .pv { grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; } }
    .pv-media { display: grid; gap: 10px; }
    .pv-main { aspect-ratio: 1; border-radius: 20px; background: #fff; overflow: hidden; }
    .pv-main img { width: 100%; height: 100%; object-fit: contain; }
    .thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
    .thumbs button { flex: none; width: 56px; height: 56px; padding: 0; border-radius: 12px; overflow: hidden; background: #fff; border: 2px solid transparent; cursor: pointer; opacity: .7; }
    .thumbs button[aria-current="true"] { border-color: var(--gold-bright); opacity: 1; }
    .thumbs img { width: 100%; height: 100%; object-fit: contain; }
    .thumbs .flaw { position: relative; }
    .pv-info { display: grid; gap: 10px; }
    .pv-info h3 { margin: 0; font-size: clamp(1.3rem, 4.6vw, 1.7rem); line-height: 1.2; }
    .pv-price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
    .pv-price b { font-size: 1.45rem; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
    .avail { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill); }
    .avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
    .avail.available { color: var(--ok); background: rgba(127, 212, 160, .12); }
    .avail.reserved { color: #c3d0ff; background: rgba(195, 208, 255, .12); }
    .avail.sold { color: var(--ink-3); background: var(--panel); }
    .pv-ship { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
    .pv-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .pv-actions .btn { flex-direction: column; gap: 2px; min-height: 52px; padding: 6px; font-size: 0.78rem; font-weight: 500; border-radius: 14px; }
    .pv-actions .btn[aria-pressed="true"] { color: #ff9ab0; border-color: rgba(255, 154, 176, .5); }
    .pv-actions .btn[aria-pressed="true"] svg { fill: currentColor; }
    .facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 0.92rem; padding: 12px 14px; border-radius: 14px; background: rgba(5, 8, 24, .45); border: 1px solid var(--line); }
    .facts dt { color: var(--ink-3); } .facts dd { margin: 0; }
    .facts dd.warn { color: var(--warn); }
    .pv-desc { margin: 0; color: var(--ink-2); }
    .elsewhere { font-size: 0.86rem; color: var(--ink-3); }
    .elsewhere a { color: var(--ink-2); }
    .share { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; border-radius: 14px; background: rgba(5, 8, 24, .5); border: 1px solid var(--line); }
    .share button, .share a { min-height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-decoration: none; font-size: 0.86rem; cursor: pointer; }
    .share .qr { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 8px 0 0; }
    .share .qr canvas, .share .qr img { background: #fff; padding: 10px; border-radius: 12px; width: 200px; height: 200px; }
    .share .url { grid-column: 1 / -1; font-size: 0.74rem; color: var(--ink-3); word-break: break-all; text-align: center; }
    .sold-box { display: grid; gap: 8px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-hot); background: rgba(var(--gold-rgb), .08); }
    .sold-box b { font-size: 1.05rem; }
    .sold-box p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
    .pv-more { margin-top: 18px; }
    .pv-more h4 { margin: 0 0 12px; font-size: 1.05rem; }

    /* cart */
    .line { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
    .line img { width: 64px; height: 64px; border-radius: 12px; background: #fff; object-fit: contain; }
    .line b { display: block; font-weight: 600; line-height: 1.3; }
    .line .price { color: var(--gold-bright); font-weight: 700; }
    .line .acts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
    .line .acts button { background: none; border: 0; padding: 6px 0; min-height: 36px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 0.88rem; }
    .line .warn { display: block; margin-top: 4px; color: var(--bad); font-size: 0.86rem; font-weight: 500; }
    .opts { display: grid; gap: 6px; margin: 12px 0; border: 0; padding: 0; }
    .opts legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
    .deliv { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
    .deliv:has(input:checked) { border-color: var(--gold); background: rgba(var(--gold-rgb), .1); }
    .deliv input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; }
    .deliv span { flex: 1; display: grid; }
    .deliv small { color: var(--ink-3); font-size: 0.82rem; }
    .deliv em { font-style: normal; font-weight: 700; color: var(--gold-bright); }
    .sum { margin: 0 0 12px; display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(5, 8, 24, .5); border: 1px solid var(--line); }
    .sum div { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
    .sum dt, .sum dd { margin: 0; } .sum dd { font-variant-numeric: tabular-nums; }
    .sum .tot { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
    .sticky-cta { position: sticky; bottom: -20px; margin: 0 -16px -20px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, rgba(8, 13, 36, 0), var(--bg-1) 30%); }
    .step-back { margin-bottom: 8px; }

    /* toast */
    .toast { position: fixed; left: 50%; bottom: 96px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: all .25s var(--ease);
      display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line-hot); box-shadow: 0 20px 50px -20px #000; }
    .toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
    .toast button { white-space: nowrap; }

    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
