/* Shared foundation for the shop mock-up: colour, type, header, card panel.
   Light is the default; the dark theme is the same binder with the lights down
   (warm plum, never black, so the pink still reads as the shop's colour). */
:root{
  color-scheme:light;
  --ground:#fbe9f1; --page:#fffdfe; --pocket:#f8eff3; --line:#ecdbe3; --line-2:#dcc2ce; --tint:#f7d9e5;
  --cover:#d1447b; --cover-lo:#a8305f; --ink:#2a1320; --soft:#6d4d5a; --deep:#8a2450; --butter:#ffe58a;
  --t-pink:#f7a9c6; --t-pink-ink:#7a1d45; --t-butter:#ffe58a; --t-butter-ink:#5a4300;
  --t-sky:#bfe0f7; --t-sky-ink:#123f63; --t-mint:#bfead8; --t-mint-ink:#14503c; --t-lav:#d9cdf7; --t-lav-ink:#3d2a70;
  --gold-bg:#fff1bf; --gold-ink:#5a4300; --sky-bg:#d9edfb; --sky-ink:#123f63;
  --lav-bg:#e8e0fa; --lav-ink:#3d2a70; --mint-bg:#d6f1e5; --mint-ink:#14503c; --plain-bg:#f3e6ec; --plain-ink:#5f4450;
  --bad:#a8261c;
  --ease-out:cubic-bezier(0.23,1,0.32,1);
  --wrap:1320px; --gutter:clamp(14px,3.2vw,36px); --head:calc(65px + env(safe-area-inset-top,0px)); --panel:392px;
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --ground:#1e1218; --page:#2a1a22; --pocket:#35232d; --line:#47323d; --line-2:#614655; --tint:#4d263a;
  --cover:#c9407a; --cover-lo:#99285a; --ink:#f8eaf0; --soft:#cdb0bd; --deep:#f5a3c3; --bad:#ffb4a8;
  --gold-bg:#4a3b0d; --gold-ink:#ffe9a6; --sky-bg:#173a55; --sky-ink:#cfe8fb;
  --lav-bg:#392c62; --lav-ink:#e3d9ff; --mint-bg:#164434; --mint-ink:#c9f1df; --plain-bg:#402b36; --plain-ink:#e8d1db;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scrollbar-color:var(--line-2) transparent;scroll-behavior:smooth}
body{margin:0;background:var(--ground);color:var(--ink);font:400 15px/1.5 "Poppins",system-ui,sans-serif}
/* no scroll anchoring (owner, 27 Oct 2026): Safari 27 turned it on, and on an iPhone the Auction page then crept down
   a screenful every time its countdowns ticked, once the buyer had scrolled. The shop never relied on it */
html,body{overflow-anchor:none}
::selection{background:var(--butter);color:var(--t-butter-ink)}
:focus-visible{outline:3px solid var(--deep);outline-offset:2px;border-radius:8px}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
svg{display:block;flex:none}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
h1,h2,h3,p{margin:0}
.wrap{max-width:var(--wrap);margin-inline:auto;padding-left:max(var(--gutter),env(safe-area-inset-left,0px));padding-right:max(var(--gutter),env(safe-area-inset-right,0px))}
.skip{position:fixed;left:12px;top:12px;z-index:80;height:44px;padding:0 18px;border:0;border-radius:999px;background:var(--ink);color:var(--ground);font-weight:600;font-size:14px;transform:translateY(-80px);transition:transform 160ms var(--ease-out)}
.skip:focus{transform:none}
main:focus,.drawer:focus{outline:0}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.num{font-variant-numeric:tabular-nums}
body:not([data-view="home"]) #home,body:not([data-view="browse"]) #browse,body:not([data-view="inspo"]) #inspo,body:not([data-view="about"]) #about,body:not([data-view="checkout"]) #checkout,body:not([data-view="account"]) #account,body:not([data-view="order"]) #order,body:not([data-view="invoice"]) #invoice,body:not([data-view="badges"]) #badges,body:not([data-view="auction"]) #auction{display:none}

/* ---- header: brand, shelves, search, cart ---- */
.top{position:sticky;top:0;z-index:30;background:var(--ground);border-bottom:1px solid var(--line-2)}
/* THE HEADER RUNS UP TO THE TOP OF THE SCREEN on an iPhone (owner, 27 Oct 2026): Safari 26 lets the page scroll behind
   its see-through top bar and paints that bar in a pinned header's colour only when the header reaches the screen's
   top edge. The page fills the screen (viewport-fit=cover in index.html) and the header pads itself clear of the clock
   and the address bar; --head grows by the same inset, so everything placed under the header still clears it */
.top{padding-top:env(safe-area-inset-top,0px)}
.skip:focus{top:calc(12px + env(safe-area-inset-top,0px))}   /* (only while it shows: lowered while hidden, it peeked out under a tall inset) */
.side .side-foot{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
/* above the header, its own colour: browsers that float a see-through toolbar over the page (Telegram's in-app browser,
   iOS Safari) scroll the page up behind it, and without this the cards showed through the gap (owner, 26 Oct 2026) */
.top::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:60vh;background:var(--ground);pointer-events:none}
/* THE STRIP ABOVE THE HEADER, A TEST on the owner's iPhone (28 Oct 2026): the cards still show above the header in
   Safari 26 after both fixes above, and Safari 26 can't be run here. Safari paints its bar in a pinned header's colour
   when it finds one at the top; ?top=a takes the band away (in case it is what Safari finds), ?top=b pins the header
   with position:fixed instead of sticky (in case only fixed is looked for). The one that works replaces this. */
html[data-top] .top::before{display:none}
html[data-top="b"] .top{position:fixed;left:0;right:0}
html[data-top="b"] body{padding-top:calc(var(--head) + 1px)}
/* ?top=c (3 Nov 2026): neither a nor b took the cards away, and both kept an empty band under Safari's bar on a wide screen: the
   header's top padding, kept for an iPhone's clock even where Safari's own bar already covers that space. c drops the padding too */
html[data-top="c"] .top{padding-top:0}
html[data-top="c"]{--head:var(--bar,65px)}
/* two rows on a wide screen: the brand, a wide search and the buttons, then the shop's pages */
.top .bar{display:flex;align-items:center;gap:12px;height:64px;position:relative}
.nav-bar{display:flex;gap:2px;flex:0 1 auto;min-width:0;margin-inline:auto}
.top .nav-bar a{padding:8px 12px;border-radius:999px;font-weight:600;font-size:14.5px;color:var(--ink)}
@media (hover:hover) and (pointer:fine){.top .nav-bar a:hover{background:var(--tint);color:var(--deep)}}
.top .nav-bar a[aria-current]{background:var(--tint);color:var(--deep)}
.find-btn{margin-left:0}
.top .find-x{flex:none;border:0;background:var(--ground);color:var(--ink);height:32px;padding:0 14px;border-radius:999px;font-weight:600;font-size:13.5px;cursor:pointer}

/* the shop's pages: a band of its own under the top row, centred, in the page's ink so it reads as the menu */
.navband{background:var(--page);border-top:1px solid var(--line)}
.navrow{display:flex;align-items:center;justify-content:center;height:48px}
.navrow .nav{gap:6px}
.navrow .nav a{padding:8px 16px;font-weight:600;font-size:15px;color:var(--ink)}
.navrow .nav a[aria-current]{background:var(--cover-lo);color:#fff}
.brand{flex:none;display:flex;align-items:center;gap:8px;white-space:nowrap;min-width:0}
.brand img{height:38px;width:auto}
.brand-t{display:grid;min-width:0;line-height:1.08}
.brand-t b{font-weight:800;font-size:17px;letter-spacing:-.02em}
.brand-t small{font-weight:600;font-size:11.5px;letter-spacing:.01em;color:var(--soft)}
:root[data-theme="dark"] .brand img{filter:drop-shadow(0 0 1.5px rgba(255,236,244,.8))}
.nav{display:flex;gap:4px}
.nav a{padding:8px 13px;border-radius:999px;font-weight:500;font-size:14.5px;color:var(--soft);white-space:nowrap;transition:background-color 160ms ease,color 160ms ease}
.nav a[aria-current]{color:var(--deep);background:var(--tint);font-weight:600}
.search{display:flex;align-items:center;gap:9px;background:var(--page);border:1.5px solid transparent;border-radius:999px;padding:0 15px;height:42px;color:var(--soft);transition:border-color 160ms ease}
.search:focus-within{border-color:var(--cover)}
.search input{border:0;outline:0;background:none;width:100%;font-size:14.5px;color:var(--ink);caret-color:var(--cover)}
.search input::placeholder{color:var(--soft)}
.top .search{flex:1 1 0;max-width:380px;min-width:160px;margin-left:auto;padding-right:6px;display:none;border-color:var(--line-2);transition:opacity 200ms var(--ease-out),transform 240ms var(--ease-out),border-color 160ms ease}
body[data-find="open"] .top .search{display:flex;max-width:560px;margin-inline:auto}
/* open, the search takes the menu's place until it is closed (audit, 27 Oct 2026: beside the menu it was squeezed to three
   letters and pushed the cart off the page) */
body[data-find="open"] .nav-bar{display:none}
body[data-find="open"] .find-btn{display:none}
@starting-style{body[data-find="open"] .top .search{opacity:0;transform:translateX(14px)}}
@media (prefers-reduced-motion:reduce){.top .search{transition:none}}
.icon-btn{display:grid;place-items:center;width:42px;height:42px;border-radius:999px;border:0;background:var(--page);transition:transform 140ms var(--ease-out)}
/* the account button says what it is */
.acct{flex:none;display:flex;align-items:center;gap:8px;height:42px;padding:0 16px 0 12px;border:0;border-radius:999px;background:var(--page);font-weight:600;font-size:14px;white-space:nowrap;transition:transform 140ms var(--ease-out),color 160ms ease}
.acct:active{transform:scale(.97)}
.ac-short{display:none}
.cart{display:flex;align-items:center;gap:8px;height:42px;padding:0 15px 0 13px;border-radius:999px;border:0;background:var(--cover-lo);color:#fff;font-weight:600;font-size:14.5px;transition:transform 140ms var(--ease-out)}
.cart b{background:#fff;color:#8a2450;border-radius:999px;min-width:22px;height:22px;display:grid;place-items:center;font-size:12.5px}
.cart b.bump{animation:bump 300ms var(--ease-out)}
@keyframes bump{0%{transform:scale(1.2)}100%{transform:scale(1)}}
.icon-btn:active,.cart:active,.buy-add:active,.buy-step button:active{transform:scale(.97)}
.subbar{display:none}
.menu-btn,.drawer{display:none}

/* ---- rarity chips: colour lets the eye sort a grid by rarity ---- */
.rar{display:inline-block;font-weight:700;font-size:11px;line-height:1;padding:4px 6px;border-radius:5px;letter-spacing:.02em;background:var(--plain-bg);color:var(--plain-ink);white-space:nowrap}
.r-gold{background:var(--gold-bg);color:var(--gold-ink)}.r-sky{background:var(--sky-bg);color:var(--sky-ink)}
.r-lav{background:var(--lav-bg);color:var(--lav-ink)}.r-mint{background:var(--mint-bg);color:var(--mint-ink)}

/* ---- a set's mark, as printed at the foot of the card: condensed white letters on
   black, a white keyline just inside the edge ---- */
.setcode{flex:none;display:inline-block;padding:1px 5px 0;border-radius:4px;border:1px solid #17110f;background:#17110f;box-shadow:inset 0 0 0 1px #fff;color:#fff;font:700 12.5px/1.25 "Roboto Condensed","Arial Narrow",sans-serif;letter-spacing:.01em;white-space:nowrap}
.setcode i{font-style:normal;font-size:.78em}
.setcode.promo{font-size:11px;letter-spacing:.05em;padding-top:2px}
/* an older set's symbol, shown at about the height of a set mark */
.setsym{flex:none;display:inline-block;height:17px;width:28px;object-fit:contain}

/* ---- add to cart: a cart button, then a stepper once the copy is in the cart ---- */
.buy{flex:none}
.buy-add{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:13px;background:var(--cover-lo);color:#fff;transition:transform 140ms var(--ease-out),background-color 160ms ease}
.buy-step{display:inline-flex;align-items:center;height:44px;border-radius:13px;background:var(--page);box-shadow:inset 0 0 0 1.5px var(--cover);animation:buy-in 200ms var(--ease-out)}
.buy-step button{display:grid;place-items:center;width:36px;height:44px;border:0;background:none;color:var(--deep);transition:transform 140ms var(--ease-out)}
.buy-step button[disabled]{opacity:.3;cursor:default}
.buy-step b{min-width:20px;text-align:center;font-weight:700;font-size:15px}
@keyframes buy-in{from{transform:scale(.94);opacity:.4}}
.buy.wide{flex:1 1 auto;min-width:0;height:34px;border-radius:10px}
.buy-add.wide{width:auto;padding:0 8px;font-weight:600;font-size:12.5px;white-space:nowrap}
.buy-step.wide{justify-content:space-between}
.buy-step.wide button{width:26px;height:34px}
.buy-step.wide b{min-width:18px;font-size:14px}
.buy-add.wide svg{width:18px;height:18px}

/* ---- the card panel: every copy of one card. It floats over the page as a
   sheet of frosted glass, sliding in from the right. ---- */
.panel{--glass:rgba(255,253,254,.44);--edge:rgba(255,255,255,.62);--inner:rgba(255,255,255,.36);
  position:fixed;z-index:45;top:calc(var(--head) + 14px);right:16px;bottom:16px;width:var(--panel);border-radius:28px;padding:18px 20px 24px;overflow-y:auto;scrollbar-width:none;
  background:var(--glass);-webkit-backdrop-filter:blur(22px) saturate(1.9);backdrop-filter:blur(22px) saturate(1.9);
  border:1px solid var(--edge);box-shadow:0 34px 70px -22px rgba(70,12,40,.5),inset 0 1px 0 var(--edge);
  visibility:hidden;opacity:0;transform:translateX(calc(100% + 40px));transition:transform 380ms var(--ease-out),opacity 200ms ease,visibility 0s 380ms}
:root[data-theme="dark"] .panel{--glass:rgba(40,24,33,.42);--edge:rgba(255,255,255,.18);--inner:rgba(255,255,255,.08)}
.panel::-webkit-scrollbar{display:none}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.panel{background:var(--page)}}
body[data-panel="open"] .panel{visibility:visible;opacity:1;transform:none;transition:transform 380ms var(--ease-out),opacity 200ms ease,visibility 0s}
.panel-x{position:absolute;right:14px;top:14px;z-index:1;display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:999px;background:var(--inner);box-shadow:inset 0 0 0 1px var(--edge);transition:transform 140ms var(--ease-out)}
.panel-x:active{transform:scale(.94)}
.p-art{border-radius:20px;padding:16px 70px;background:var(--inner);box-shadow:inset 0 0 0 1px var(--edge)}
.p-art img{width:100%;aspect-ratio:860/1182;object-fit:cover;border-radius:9px;box-shadow:0 18px 28px -10px rgba(60,10,35,.55)}
.p-art.tall{padding-inline:84px}
.p-art.tall img{aspect-ratio:auto}
.panel h2{margin-top:16px;font-weight:800;font-size:23px;line-height:1.12;letter-spacing:-.025em}
.panel h2 .rar{margin-left:9px;vertical-align:5px;letter-spacing:.02em}
.p-meta{margin-top:7px;display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--ink)}
.offers{margin-top:16px;display:grid;gap:8px}
.offer{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:10px 10px 10px 14px;border-radius:16px;background:var(--inner);box-shadow:inset 0 0 0 1px var(--edge)}
.offer b{display:block;font-weight:600;font-size:14.5px}
.offer small{font-size:12.5px;color:var(--ink);opacity:.72}
.offer>i{display:none}
.offer .price{font-size:18px;font-weight:700;letter-spacing:-.01em}
.offer .gone{font-size:13px;font-weight:600;opacity:.72}
.p-note{margin-top:14px;font-size:13px;color:var(--ink);opacity:.78}
.p-set{margin-top:10px;padding-block:4px;display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:14px;color:var(--deep)}
/* a few more from the same set, to keep looking without leaving the panel */
.p-near{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:8px}
.p-thumb{display:grid;gap:6px;justify-items:center;min-width:0;border:0;padding:0;background:none;font-weight:600;font-size:12.5px}
.p-thumb .cardimg{width:100%;box-shadow:0 6px 10px -5px rgba(60,10,35,.5);transition:transform 200ms var(--ease-out)}
.p-thumb:active .cardimg{transform:scale(.97)}
.foot-theme{border:0;background:none;padding:4px 0;color:var(--deep);font-weight:600;text-decoration:underline;text-underline-offset:4px}
.scrim{display:none}
body[data-sheet="open"] .mock,body[data-panel="open"] .mock{display:none}
.mock{position:fixed;left:12px;bottom:12px;z-index:60;background:var(--ink);color:var(--ground);font-size:11.5px;padding:6px 10px;border-radius:999px;opacity:.88;white-space:nowrap}

@media (hover:hover) and (pointer:fine){
  .nav a:hover{background:var(--tint);color:var(--deep)}
  .navrow .nav a[aria-current]:hover{background:var(--cover);color:#fff}
  .acct:hover{color:var(--deep)}
  .buy-add:hover{background:var(--cover)}
  .buy-step button:not([disabled]):hover{color:var(--cover)}
  .p-thumb:hover .cardimg{transform:translateY(-3px)}
}
@media (max-width:1000px){
  :root{--bar:64px;--head:calc(var(--bar) + env(safe-area-inset-top,0px))}
  .top .navband,.top .search{display:none}
  /* phone: the menu and the brand on the left, the account and the cart against the right edge */
  .top .bar{gap:8px;height:var(--bar)}   /* (the bar alone: --head also holds the inset above it) */
  .menu-btn{display:grid;margin-left:-8px;background:none}
  .menu-btn svg{width:24px;height:24px}
  /* (the brand pushes the rest to the right, so the buttons sit against the edge whichever of them show) */
  .top .brand{margin-right:auto}
  .top [data-theme-toggle]{width:40px;height:40px}
  /* the account button is the icon with its name under it */
  .acct{flex-direction:column;justify-content:center;gap:1px;height:44px;padding:0 3px;background:none;font-size:11px;line-height:1.1}
  .acct svg{width:22px;height:22px}
  .ac-long{display:none}.ac-short{display:inline}
  body[data-me="in"] .acct::after{left:calc(50% + 5px);top:3px;box-shadow:0 0 0 2px var(--ground)}
  /* the shop's pages live in a drawer that slides in from the left */
  .drawer{display:flex;flex-direction:column;position:fixed;z-index:55;inset:0 auto 0 0;width:min(72vw,280px);padding:calc(12px + env(safe-area-inset-top,0px)) 12px calc(18px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain;background:var(--page);box-shadow:18px 0 40px rgba(60,10,35,.22);visibility:hidden;transform:translateX(-104%);transition:transform 300ms var(--ease-out),visibility 0s 300ms}
  body[data-menu="open"] .drawer{visibility:visible;transform:none;transition:transform 300ms var(--ease-out),visibility 0s}
  body[data-menu="open"] .scrim{opacity:1;visibility:visible;transition:opacity 220ms ease,visibility 0s}
  body[data-menu="open"] .mock{display:none}
  .dr-head{display:flex;align-items:center;justify-content:space-between;padding:0 0 10px 4px;border-bottom:1px solid var(--line)}
  .dr-head .icon-btn{background:var(--pocket)}
  .dr-nav{flex-direction:column;gap:2px;margin:12px 0 0}
  .dr-nav a{display:flex;align-items:center;min-height:50px;padding:0 14px;border-radius:14px;font-weight:600;font-size:17px;color:var(--ink)}
  .dr-foot{display:grid;gap:4px;margin-top:auto;padding-top:14px;border-top:1px solid var(--line)}
  .dr-foot a{display:flex;align-items:center;min-height:48px;padding:0 14px;font-weight:600;font-size:15.5px}
  .dr-foot .foot-theme{justify-self:start;padding:12px 14px}
  /* opening the menu, its items arrive from the top down, one after another */
  body[data-menu="open"] .dr-nav a,body[data-menu="open"] .dr-foot>*{animation:dr-in 360ms var(--ease-out) backwards;animation-delay:calc(110ms + var(--k) * 45ms)}
  .dr-foot>:nth-child(1){--k:7.5}.dr-foot>:nth-child(2){--k:8.5}
  @keyframes dr-in{from{opacity:0;transform:translateY(-12px)}}
  /* while the menu, the filters or a card is open, the page behind stays where it is; only the open sheet scrolls */
  html:has(body[data-panel="open"]),html:has(body[data-sheet="open"]),html:has(body[data-menu="open"]){overflow:hidden}
  .panel{overscroll-behavior:contain}
  .scrim{touch-action:none}
  .cart span{display:none}
  .brand{flex:0 1 auto}.brand img{height:34px}
  .brand-t b{font-size:16px}
  .subbar{display:block;padding:10px 0 4px}
  /* fingers: 44px to aim at, and 16px type in a field so the phone does not zoom in on it */
  .search{height:44px}
  .search input{font-size:16px}
  .brand{min-height:44px}
  .panel-x{width:44px;height:44px}
  .p-set{padding-block:11px;margin-top:4px}
  .foot-theme{padding-block:12px}

  /* on a phone the card panel is a sheet from the bottom */
  .scrim{display:block;position:fixed;inset:0;z-index:40;background:rgba(42,19,32,.42);opacity:0;visibility:hidden;transition:opacity 220ms ease,visibility 0s 220ms}
  body[data-sheet="open"] .scrim,body[data-panel="open"] .scrim{opacity:1;visibility:visible;transition:opacity 220ms ease,visibility 0s}
  /* on a phone the glass comes up from the bottom, still floating clear of the edges */
  .panel{top:auto;left:10px;right:10px;bottom:10px;width:auto;max-width:520px;margin-inline:auto;max-height:84vh;border-radius:26px;padding:14px 14px 18px;transform:translateY(calc(100% + 24px))}
  .p-art{padding:14px 27%}
  .p-art.tall{padding-inline:31%}
}
/* REDUCED MOTION: gentler, not frozen. Nothing moves, scales or flips; what used to arrive with movement fades in
   quickly instead, colour and opacity changes stay (briefly), and the waiting dots still fade in turn so it's clear
   the shop is busy. */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition-property:opacity,color,background-color,border-color,box-shadow,outline-color!important;transition-duration:150ms!important;transition-delay:0ms!important}
  .enter .t,.buy-step,body[data-menu="open"] .dr-nav a,body[data-menu="open"] .dr-foot>*{animation:rm-fade 160ms ease-out backwards!important}
  .dots i,.pay-wait i{animation:dot-fade 1.2s ease-in-out infinite both!important}
}
@keyframes rm-fade{from{opacity:0}}
/* (a very narrow phone keeps the light/dark switch in the bar too: live.css makes the room) */
@media (max-width:380px){.brand-t{overflow:hidden}}
@media (min-width:1001px){html{zoom:.9}}

/* the one-line header (21 Oct 2026): on a phone-sized screen the headings live in the menu and search sits under the bar (not on the home page, which has its own) */
@media (max-width:1000px){.nav-bar,.find-btn,.top .find-x{display:none}body[data-find="open"] .top .search{display:none}body[data-view="home"] .subbar{display:none}}
@media (min-width:1001px) and (max-width:1180px){.top .nav-bar a{padding:8px 7px;font-size:14px}}
@media (min-width:1381px){.top .nav-bar{gap:8px}.top .nav-bar a{padding:8px 15px}}
/* the search open beside the headings: on a narrower desktop the headings close up to make room */
@media (min-width:1001px) and (max-width:1400px){body[data-find="open"] .top .nav-bar a{padding:8px 6px;font-size:13.5px}}
/* the account button says just "Log in" until there is room for the whole of it */
@media (min-width:1001px) and (max-width:1280px){.top .ac-long{display:none}.top .ac-short{display:inline}}

/* a card's photo, larger (from the card panel): centred, as tall as the screen allows up to a comfortable size */
.p-zoom{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in;border-radius:9px}
.p-zoom:focus-visible{outline:2px solid var(--cover);outline-offset:3px}
#cardZoom{padding:0;border:0;background:transparent;max-width:none;max-height:none;overflow:visible}
#cardZoom::backdrop{background:rgba(25,8,18,.74);backdrop-filter:blur(3px)}
#cardZoom img{display:block;width:auto;height:auto;max-height:min(84vh,860px);max-width:min(88vw,620px);border-radius:14px;box-shadow:0 30px 60px -20px rgba(0,0,0,.65);cursor:default}
#cardZoom .z-x{position:absolute;top:-16px;right:-16px;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:999px;background:var(--page);color:var(--ink);cursor:pointer;box-shadow:0 6px 16px -6px rgba(0,0,0,.5)}
#cardZoom[open]{animation:zoom-in 200ms var(--ease-out)}
@keyframes zoom-in{from{opacity:0;transform:scale(.96)}}
@media (max-width:700px){#cardZoom .z-x{top:8px;right:8px}#cardZoom img{max-width:92vw;max-height:80vh}}
@media (prefers-reduced-motion:reduce){#cardZoom[open]{animation:none}}
/* end-of-night audit, 21 Oct 2026: the viewer's close is a full 44px target; the backdrop fades in with the photo; on a
   desktop (drawn at 90%) the photo may use the window's real height */
#cardZoom .z-x{width:44px;height:44px}
#cardZoom[open]::backdrop{animation:zoom-fade 200ms var(--ease-out)}
@keyframes zoom-fade{from{opacity:0}}
@media (min-width:1001px){#cardZoom img{max-height:min(calc(84vh / .9),860px)}}
@media (prefers-reduced-motion:reduce){#cardZoom[open]::backdrop{animation:none}}
/* the page entrance (waveIn in core.js) */
.wave > *,.wave .wave-list > *{animation:wave-in 380ms var(--ease-out) backwards;animation-delay:calc(var(--w,0) * 55ms)}
@keyframes wave-in{from{opacity:0;transform:translateY(12px)}}
@media (prefers-reduced-motion:reduce){.wave > *,.wave .wave-list > *{animation:none}}

/* ---- the intro on the home page (site/js/intro.js; owner, 23 Oct 2026): the logo, then Fallacy's / Card / Shop drop in,
   then the home page rises into place once the shop has loaded ---- */
.intro{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:env(safe-area-inset-top,0px) 16px env(safe-area-inset-bottom,0px);
  background:radial-gradient(110% 55% at 50% -12%,color-mix(in srgb,var(--cover) 20%,transparent),transparent 70%),var(--ground);cursor:pointer}
.intro[hidden]{display:none}
.intro-in{display:grid;justify-items:center;gap:clamp(6px,1vw,12px)}
.intro-logo{width:clamp(58px,6.4vw,92px);height:auto;filter:drop-shadow(0 12px 20px rgba(90,20,55,.28))}
.intro-words{display:grid;justify-items:center;line-height:.88;text-align:center}
.intro-w{display:block;font-weight:800;font-size:clamp(28px,4.2vw,60px);letter-spacing:-.045em;color:var(--ink)}
.intro-w:nth-child(1){transform:rotate(-4deg)}.intro-w:nth-child(2){transform:rotate(3deg);color:var(--cover)}.intro-w:nth-child(3){transform:rotate(-3deg)}
html.intro-on body{overflow:hidden}

/* ---- moving between pages (core.js pageTurn, owner 24 Oct 2026): the old page fades out quickly, the new one fades in
   rising a little; the header stays exactly where it is ---- */
.top{view-transition-name:shop-top}
::view-transition-group(shop-top),::view-transition-group(shop-note){animation:none}
::view-transition-old(shop-top),::view-transition-old(shop-note){display:none}
::view-transition-new(shop-top),::view-transition-new(shop-note){animation:none}
::view-transition-old(root){animation:vt-out 150ms ease-out both}
::view-transition-new(root){animation:vt-in 320ms cubic-bezier(.23,1,.32,1) both}
@keyframes vt-out{to{opacity:0}}
@keyframes vt-in{from{opacity:0;transform:translateY(12px)}}
/* the light / dark switch: a plain cross-fade of everything, header included */
html.vt-theme::view-transition-old(root),html.vt-theme::view-transition-old(shop-top),html.vt-theme::view-transition-old(shop-note){display:block;animation:vt-out 300ms ease both}
html.vt-theme::view-transition-new(root),html.vt-theme::view-transition-new(shop-top),html.vt-theme::view-transition-new(shop-note){animation:vt-fade 300ms ease both}
@keyframes vt-fade{from{opacity:0}}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}

/* a short message at the foot of the screen (core.js notice) */
.shop-note{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:70;max-width:min(92vw,440px);margin:0;padding:11px 18px;border-radius:14px;background:var(--ink);color:var(--ground);font-size:14px;line-height:1.4;text-align:center;box-shadow:0 12px 26px -10px rgba(40,10,25,.45);opacity:0;transform:translate(-50%,12px);pointer-events:none;transition:opacity 200ms ease,transform 280ms cubic-bezier(.23,1,.32,1)}
.shop-note.on{opacity:1;transform:translate(-50%,0)}
@media (max-width:700px){.shop-note{bottom:calc(84px + env(safe-area-inset-bottom,0px))}}
@media (prefers-reduced-motion:reduce){.shop-note{transition:opacity 150ms ease;transform:translate(-50%,0)}}

/* the header's sections by their full names (owner, 24 Oct 2026), beside a log-in button that is always there: the
   button says just "Log in" (or "Account") on every desktop, the links sit a little closer, and on the narrowest
   desktops the shop's name gives way to its logo, so nothing runs under the buttons */
@media (min-width:1001px){.top .ac-long{display:none}.top .ac-short{display:inline}}
@media (min-width:1381px){.top .nav-bar{gap:4px}.top .nav-bar a{padding:8px 10px;font-size:14px}}
@media (min-width:1181px) and (max-width:1380px){.top .nav-bar a{padding:8px 9px;font-size:14px}}
@media (min-width:1001px) and (max-width:1180px){.top .brand-t{display:none}.top .nav-bar a{padding:8px 6px;font-size:13.5px}}
@media (min-width:1001px) and (max-width:1060px){.top .nav-bar a{padding:8px 4px;font-size:13px}}

/* a phone's sheet has a handle at its top: it can be pulled down to close (core.js sheetSwipe) */
@media (max-width:1000px){
  .panel::before{content:"";position:absolute;top:7px;left:50%;z-index:2;width:36px;height:5px;margin-left:-18px;border-radius:999px;background:var(--ink);opacity:.2;pointer-events:none}
}
