/* theme-moon/s9-card.css - THE SHOP'S CARD LOOK, one source for the Shop and the Lobby (Thread LB 2026-11-14: moved verbatim from three inline blocks of The Shop v2.dc.html, in their order). */
/* 2026-11-08 thread A, OWNER "Why do the cards miss the 'i' option? We had the card flip thing" + "add to fav button on the top right of the card": the pin wall (2026-10-26) hid the card's own name row on touch screens (hover:none) and its icon column everywhere, so a phone card lost both. The SAME buttons come back, nothing new: the row's "i" (Quick facts, the locked flip) between the kind and the price, as on a desktop card; the heart (Add to favourites) top right, level with the moon top left. The rest of the old name row stays hidden. */
/* OWNER "the i is not justified in the row with … the type of the product and the price": the row is built as a twin of the label (.s9-tag) — same zoom, padding, size and line — with an unseen "$" in the label's face as its baseline, so the i sits on the very line the kind and the price sit on */
@media (max-width:760px){
html.s9-pins body [data-wall-grid] > [data-sku] > div:not([data-open-piece]) [data-card-namerow="1"][data-card-namerow]{display:flex!important;position:absolute!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;width:auto!important;height:auto!important;margin:0!important;zoom:var(--s9z,1);padding:10px 13px 11px!important;box-sizing:border-box!important;align-items:baseline!important;justify-content:center!important;column-gap:0!important;row-gap:0!important;font-family:var(--font-body)!important;font-weight:400!important;font-size:15px!important;line-height:1.22!important;grid-template-columns:none!important;opacity:1!important;transform:none!important;background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;pointer-events:none!important;z-index:8!important;transition:none!important}
html.s9-pins body [data-wall-grid] > [data-sku] > div:not([data-open-piece]) [data-card-namerow="1"][data-card-namerow]::before{content:"$";display:block;width:0;white-space:nowrap;visibility:hidden;font-size:17px;line-height:1.22;font-family:var(--font-body);font-weight:400}
html.s9-pins body [data-wall-grid] > [data-sku] > div:not([data-open-piece]) [data-card-namerow="1"][data-card-namerow] > *:not([data-card-acts]){display:none!important}
html.s9-pins body [data-wall-grid] > [data-sku] > div:not([data-open-piece]) [data-card-namerow="1"][data-card-namerow] > [data-card-acts]{display:flex!important;align-items:baseline!important;position:static!important;margin:0!important;padding:0!important;width:auto!important;height:auto!important;transform:none!important}
html.s9-pins body [data-wall-grid] > [data-sku] > div:not([data-open-piece]) [data-card-namerow="1"][data-card-namerow] > [data-card-acts] > *:not([title="Quick facts"]){display:none!important}
html.s9-pins body [data-wall-grid] > [data-sku] > div:not([data-open-piece]) [data-card-namerow="1"][data-card-namerow] > [data-card-acts] > [title="Quick facts"]{display:block!important;box-sizing:content-box!important;width:auto!important;height:auto!important;padding:9px 12px!important;margin:-9px -12px!important;transform:none!important;pointer-events:auto!important;cursor:pointer;font-family:Georgia,"Times New Roman",serif!important;font-style:italic!important;font-size:16px!important;line-height:1.22!important;color:#FFFFFF!important;text-shadow:0 1px 4px rgba(0,0,0,.55);transition:opacity 260ms ease}
/* the i is one of the label's three words: it shows with the kind and the price (while the wall rests), never on its own */
html.s9-pins:not(.s9-rest) body [data-wall-grid] > [data-sku] > div:not([data-open-piece]) [data-card-namerow="1"][data-card-namerow] > [data-card-acts] > [title="Quick facts"],html.s9-pins body [data-wall-grid] > [data-sku]:not(:has(> .s9-tag.on)) > div:not([data-open-piece]) [data-card-namerow="1"][data-card-namerow] > [data-card-acts] > [title="Quick facts"]{opacity:0!important;pointer-events:none!important}
html.s9-pins body [data-wall-grid] > [data-sku] > div:not([data-open-piece]) > [data-card-icons="1"]:not([aria-expanded]):not([role="group"]):not([data-card-namerow]){display:flex!important;position:absolute!important;top:5px!important;right:5px!important;bottom:auto!important;left:auto!important;flex-direction:row!important;gap:0!important;transform:none!important;z-index:8!important}
html.s9-pins body [data-wall-grid] > [data-sku] > div:not([data-open-piece]) > [data-card-icons="1"]:not([aria-expanded]):not([role="group"]):not([data-card-namerow]) > :not([data-fav-ico]){display:none!important}
html.s9-pins body [data-wall-grid] > [data-sku] > div:not([data-open-piece]) > [data-card-icons="1"]:not([aria-expanded]):not([role="group"]):not([data-card-namerow]) > [data-fav-ico]{width:30px!important;height:30px!important;color:#FFFFFF!important}
html.s9-pins body [data-wall-grid] > [data-sku] > div:not([data-open-piece]) > [data-card-icons="1"]:not([aria-expanded]):not([role="group"]):not([data-card-namerow]) > [data-fav-ico] svg{width:17px!important;height:17px!important;filter:drop-shadow(0 1px 3px rgba(0,0,0,.8))}
/* turned over (the facts side up): the heart and the i step away with the face (the back has its own way back) */
/* … and from the first frame of a turn, either way (the turn class is on the card while it spins), so neither is ever seen on the back */
html.s9-pins body [data-wall-grid] > [data-sku] > div.s925-turning [data-card-namerow="1"][data-card-namerow][data-card-namerow]{display:none!important}
html.s9-pins body [data-wall-grid] > [data-sku]:has([role="group"][aria-label="Quick facts"][aria-hidden="false"]) > div:not([data-open-piece]) [data-card-namerow="1"][data-card-namerow][data-card-namerow]{display:none!important}
html.s9-pins body [data-wall-grid] > [data-sku]:has([role="group"][aria-label="Quick facts"][aria-hidden="false"]) > div:not([data-open-piece]) > [data-card-icons="1"][data-card-icons]:not([aria-expanded]):not([role="group"]):not([data-card-namerow]){display:none!important}
}
/* ---- */
/* OWNER 2026-10-26 "once I settle on a view and stop scrolling … one or two seconds … just show … necklace bracelet ring … and the price
   and that's all": on the phone wall, a quiet label on each card in view once the scroll has rested; it goes the moment the wall moves */
.s9-tag{position:absolute;left:0;right:0;bottom:0;z-index:7;box-sizing:border-box;display:flex;align-items:baseline;justify-content:space-between;gap:8px;white-space:nowrap;overflow:hidden;
 padding:8px 11px 9px;background:transparent;color:#0B1220;text-shadow:0 0 6px rgba(255,255,255,.7);
 font-family:var(--font-body);font-weight:400;font-size:15px;line-height:1.22;pointer-events:none;opacity:0;transition:opacity 260ms ease}
.s9-tag span{min-width:0;overflow:hidden;text-overflow:ellipsis;color:inherit}
.s9-tag .lt{color:#15171B;text-shadow:0 0 4px rgba(255,255,255,.65)}
.s9-tag .dk{color:#FFFFFF;text-shadow:0 1px 4px rgba(0,0,0,.55)}
.s9-tag b{flex:none;font-weight:400;font-size:17px;letter-spacing:.01em;font-feature-settings:"tnum"}
html.s9-rest .s9-tag.on{opacity:1}
/* OWNER 2026-10-27: set at the old card's size and scaled to the card (--s9z, from the wall's layout) */
.s9-tag{zoom:var(--s9z,1);padding:10px 13px 11px}
@media (prefers-reduced-motion:reduce){.s9-tag{transition:none}}
/* 2026-11-13 thread O · OWNER "the text is overlapping the product which is a big no-no ... the product and the text should never overlap in any view":
   the card's words live in two bands and the piece is fitted between them (pic() reads --s9sw/--s9sh/--s9pcy). Top: the heart (its glyph ends 28px down,
   22px in three per row) + 4px clear. Bottom: the label row itself (.s9-tag: 42px at the card's --s9z, its text's shadow included). Sides: the picture box's
   own 6%. One rule, every card view; the picture box (.s9-alpha > i) itself is unchanged, so the light, sheen and glints keep their frame. */
@media (max-width:760px){
/* thread LL 2026-11-14 (overlap lock, XLE_681388427156: heart 3.5 px from the piece): the picture layer overhangs the card by 1 px on every side and the bands are measured in it, so each band is 1 px deeper: 34 px (28 in three per row) on top, 42 px * z + 1 px at the foot */
html.s9-pins [data-wall-grid] > [data-sku] > div:not([data-open-piece]) .s9-alpha{--s9bt:34px;--s9bb:calc(var(--s9z,1) * 42px + 1px);
 --s9sw:88cqw;--s9sh:calc(100cqh - max(6cqh, var(--s9bt)) - max(6cqh, var(--s9bb)));--s9pcx:44cqw;--s9pcy:calc(max(6cqh, var(--s9bt)) + (100cqh - max(6cqh, var(--s9bt)) - max(6cqh, var(--s9bb))) / 2 - 6cqh)}
html.s925-cols3.s9-pins [data-wall-grid] > [data-sku] > div:not([data-open-piece]) .s9-alpha{--s9bt:28px}}

/* ---- */
/* OWNER 2026-10-27 "on card show the moon phase on top left if the product belongs to a room. on back side also mention the room it belongs
   if it does and the wall" */
/* OWNER 2026-10-27 "moon phase barely visible on cards" → "the black moon sucks … the old grey scale works with a slighter prominent boundary to be
   able to see the hue around the moon": the silver moon as before, with a firmer edge (a slate line inside a fine light one) and a cool halo that
   shows on white as well as on dark photographs */
.s9-cmoon{position:absolute;top:10px;left:10px;z-index:7;width:20px;height:20px;border-radius:50%;pointer-events:none;zoom:var(--s9z,1);
 box-shadow:0 0 0 1px rgba(58,70,94,.55),0 0 0 2px rgba(255,255,255,.4),0 0 12px 3px rgba(140,162,200,.55);
 /* OWNER 2026-10-27 "more color inside to see the phase … subtle but recognizable": the unlit side is a quiet slate, so the lit shape reads */
 background:radial-gradient(circle at 45% 40%,#76849D 0%,#626E85 70%,#586276 100%);   /* OWNER 2026-10-27: 15% lighter */
 /* OWNER 2026-10-27: it comes and goes with the card's words — on hover (desktop), once the scroll rests (phone) */
 opacity:0;transition:opacity 220ms ease}
html.s9-pins [data-wall-grid] > [data-sku]:has(> .s9-dtag.on) > .s9-cmoon,html.s9-rest [data-wall-grid] > [data-sku]:has(> .s9-tag.on) > .s9-cmoon{opacity:1}
.s9-cmoon svg{width:20px;height:20px;display:block}
/* 2026-11-11 thread F: the same moon svg as one picture (see mi9) */
.s9-mi{display:block;width:100%;height:100%;background-position:center;background-size:100% 100%;background-repeat:no-repeat}.s9-cmoon .s9-mi{width:20px;height:20px}.s9-bwhere [data-moon] .s9-mi{width:16px;height:16px}
html.s9-pins [data-wall-grid] > [data-sku]:has([role="group"][aria-label="Quick facts"][aria-hidden="false"]) > .s9-cmoon{display:none}
.s9-bwhere{grid-column:1 / -1;display:flex;align-items:center;gap:8px;min-width:0;padding-bottom:6px;border-bottom:1px solid rgba(21,23,27,.08)}
.s9-bwhere [data-moon]{flex:none;width:16px;height:16px;border-radius:50%;box-shadow:0 0 0 1px rgba(21,23,27,.18)}
.s9-bwhere [data-moon] svg{width:16px;height:16px;display:block}
.s9-bwhere .k{display:block;font-size:9.5px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:#6B7280}
.s9-bwhere .v{display:block;font-size:12.5px;line-height:1.3;color:#15171B}

/* ---- THE SHOP'S THUMBNAIL WALL (thread LL 2026-11-14: moved verbatim from The Shop v2.dc.html's inline blocks, one source for the Shop's walls view and the Lobby's room chapter): the wall's title type, the 5-column grid, the Salon hang's rows (thread S1 2026-11-13, owner approved A2), the tile, its picture box and its sheen. In the Shop these stood inside @media (max-width:760px); the Shop draws a thumbnail wall only on a phone (wovVals: isMob), so without the media query nothing changes there, and the Lobby's wall keeps its look on a phone held sideways and on wider screens. ---- */
[data-wov-hd]{display:flex;align-items:baseline;gap:10px;min-width:0}
[data-wov-name]{flex:1 1 auto;min-width:0;font-family:var(--s925-font-name,Cinzel,Georgia,serif);font-size:15px;line-height:1.3;letter-spacing:.1em;text-transform:uppercase;color:#E4E9F1;overflow-wrap:anywhere}
[data-wov-n]{flex:none;font:11.5px/1 var(--s925-font-body,system-ui);letter-spacing:.06em;font-feature-settings:'tnum';color:rgba(228,233,241,.58)}
[data-wov-th]{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:11px}
[data-wov-s]{container-type:inline-size}
html:not(.s9-wovsel) [data-wov-th][data-salon="1"]{grid-auto-rows:calc((100cqw - 24px) / 5)}
html:not(.s9-wovsel) [data-wov-th][data-salon="1"] > [data-wov-t]{aspect-ratio:auto;min-height:0;min-width:0}
html:not(.s9-wovsel) [data-wov-th][data-salon="1"] > [data-wov-t][data-big="1"]{border-radius:10px}
[data-wov-t]{position:relative;aspect-ratio:1/1;border-radius:8px;overflow:hidden;container-type:size;background:radial-gradient(72.5% 58% at 50% 52%,rgba(214,219,228,.55) 0%,rgba(214,219,228,.3) 30%,rgba(214,219,228,.08) 65%,rgba(214,219,228,0) 100%),linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,.4)),var(--s9bd,#7d8189)}
[data-wov-t] > i{position:absolute;inset:6%;display:block}
[data-wov-t] img{position:absolute;display:block;max-width:none;filter:drop-shadow(0 3px 5px rgba(0,0,0,.28))}
[data-wov-t][data-st="0"] > i{inset:0}
[data-wov-t][data-st="0"] img{object-fit:cover;filter:none}
[data-wov-t] b[data-wsh]{position:absolute;display:block;pointer-events:none;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;mix-blend-mode:screen;background:radial-gradient(circle at calc(50% + var(--s9tx,0) * 42%) calc(46% + var(--s9ty,0) * 42%),rgba(255,255,255,.85) 0%,rgba(255,255,255,.35) 26%,rgba(255,255,255,0) 55%)}
[data-wov-t][data-st="0"] b[data-wsh]{display:none}
@media (prefers-reduced-motion:reduce){[data-wov-t] b[data-wsh]{display:none}}

/* ---- THE CARD'S FRAME (thread LL 2026-11-14: moved from the Shop's pin-wall block, one source for the Shop's wall and the Lobby's cards): 16 px corners and the drop shadow under every card ---- */
html.s9-pins [data-wall-grid] > [data-sku]{border-radius:16px;box-shadow:0 26px 34px -18px rgba(0,0,0,.95),0 10px 16px -6px rgba(0,0,0,.55)}

/* ---- THE CARD'S FACE in the Lobby's room chapter (thread LL 2026-11-14): the Shop card's gloss ground, the very declarations of the Shop page's rule
   (html.s9-gloss ... .s9-alpha, in its ground block; theme-moon/s9-skin.js sets --s9gl / --s9gb on the root in the Lobby too). If the Shop's rule changes, change this with it. ---- */
html.s9-gloss [data-s9-chapter] [data-wall-grid] > [data-sku] .s9-alpha{background-image:var(--s9gb,none),var(--s9gl)!important;background-position:bottom center,top center!important;background-repeat:no-repeat!important;background-size:100% auto,100% auto!important;background-blend-mode:normal!important;image-rendering:pixelated}
[data-s9-chapter] [data-wall-grid] > [data-sku] .s9-alpha > i{image-rendering:auto}
/* the rim: the Shop card's top layer and its 1.5 px line in the backdrop colour */
[data-s9-chapter] [data-wall-grid] > [data-sku] > .scpl::after{content:'';position:absolute;inset:0;border-radius:16px;box-shadow:inset 0 0 0 1.5px var(--s9bd,#7d8189);pointer-events:none;z-index:9}
/* ---- THE ROOM'S COLOURS ON THE CARD (thread RC2 2026-11-14, OWNER: "Lobby Loop used the other mockup, which was not the high contrast backdrops"). Inside an
   element dressed by S9Card.room (data-s9-rc: the Shop's <html> while a room is open on a phone, the Lobby's chapter layer) the card's FACE is the room's
   deep panel colour, the wall behind is the room's darker wall colour, and a 1.5 px rim light marks the card's edge. One table: S9Card.COL in s9-card.js.
   Nothing of the card's structure, layout, words or behaviour changes: only its ground colours. The light keeps its veil, pool, glow, sheen and stars; the
   pool takes the room's colour (--s9rq; on a phone the canvas draws it, s9-film.js rcPool). ---- */
[data-s9-rc] [data-wall-grid] > [data-sku]{--s9bd:var(--s9rb)}
/* the face while the light is live: the plain ground (the canvas / the layers lay the veil and the pool on it) */
[data-s9-rc][data-s9-rc] [data-wall-grid] > [data-sku] > div:not([data-open-piece]) .s9-alpha[data-st="1"]{background-color:var(--s9rb)!important;background-image:none!important}
/* the face before its light is ready, or after it was put away: the same look, still */
[data-s9-rc][data-s9-rc] [data-wall-grid] > [data-sku] > div:not([data-open-piece]) .s9-alpha[data-st="1"]:not(.f9-live){background-image:var(--s9rs),linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,.4))!important;background-size:100% 100%,100% 100%!important;background-position:0 0,0 0!important}
[data-s9-rc][data-s9-rc] [data-wall-grid] > [data-sku] .scpl:has(.s9-alpha[data-st="1"]:not(.f9-live):not(.f9-lit))::after{background:var(--s9rs),linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,.4)),var(--s9rb)}
/* THREAD ROOMCARD step g 2026-11-16 (owner: the opened piece on grey, its card on the room's brown): the OPENED piece's picture box in a room = the wall card's ground */
html:not(.s9-skinlit)[data-s9-rc][data-s9-rc] [data-open-piece] .s9-alpha[data-st="1"]{background-color:var(--s9rb)!important;background-image:none!important}
html:not(.s9-skinlit)[data-s9-rc][data-s9-rc] [data-open-piece] .s9-alpha[data-st="1"]:not(.f9-live){background-image:var(--s9rs),linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,.4))!important;background-size:100% 100%,100% 100%!important;background-position:0 0,0 0!important}
/* ROOMCARD step g2 (audit M3): the opened piece's sheet in a room = the room's wall colour (was the house navy) */
html[data-s9-rc][data-s9-rc].s9-pins [data-wall-grid] > [data-sku] > [data-open-piece="1"],html[data-s9-rc][data-s9-rc].s925-mdetail [data-open-piece="1"],html[data-s9-rc][data-s9-rc] [data-open-piece="1"]{background-color:var(--s9rw)!important}
/* the light pool where the light is laid in layers (computers) */
[data-s9-rc] [data-wall-grid] > [data-sku] .f9-s{background:var(--s9rg)}
/* the card under its picture layer, and its back (Quick facts): the panel colour itself */
[data-s9-rc] [data-wall-grid] > [data-sku] > .scpl{background:var(--s9rp)!important}
[data-s9-rc] [data-wall-grid] > [data-sku] [role="group"][aria-label="Quick facts"]{--s9bd:var(--s9rp)}
/* the rim light */
[data-s9-rc][data-s9-rc] [data-wall-grid] > [data-sku]:has(.s9-alpha[data-st="1"]) > div:not([data-open-piece])::after{box-shadow:inset 0 0 0 1.5px var(--s9rr)!important}
[data-s9-rc][data-s9-rc] [data-wall-grid] > [data-sku]:has(> div:not([data-open-piece]) .s9-alpha[data-st="1"]) > div:not([data-open-piece]){border-color:var(--s9rr)!important}
/* the label: light ink on every room's deep face */
[data-s9-rc] [data-wall-grid] > [data-sku] > .s9-tag,[data-s9-rc] [data-wall-grid] > [data-sku] > .s9-tag .lt{color:#FFFFFF;text-shadow:0 1px 4px rgba(0,0,0,.55)}
/* the thumbnail wall's tile: the same face, its centre light, a finer rim */
[data-s9-rc] [data-wov-t]{background:radial-gradient(72.5% 58% at 50% 52%,var(--s9rc) 0%,var(--s9rp) 100%);box-shadow:inset 0 0 0 1px var(--s9rr)}
[data-s9-rc] [data-wov-t][data-big="1"]{box-shadow:inset 0 0 0 1.5px var(--s9rr)}
/* the wall behind the cards (the Shop's room view on a phone; the Lobby's layer takes its wall colour in chRun) */
html[data-s9-rc] [data-showcase-window="1"]{background:var(--s9rw)!important}
/* thread SPEED 2026-11-16 (OWNER, iPhone: "the jerks and hiccups in swiping the cards up and down have returned"): every wall card carried inline
   perspective:1400px (and the page's [style*="perspective:1400px"]{-webkit-perspective} rule). With the Shop's inserts in the wall it made each layer update
   about 4x dearer while swiping (measured: Shop 1 per row, inserts on; perspective off = the numbers of the wall with no inserts). Mobile WebKit needs the
   card's perspective in place BEFORE a turn starts (it makes the 3D context that hides the back face), so it is taken off only WHILE THE WALL IS SWIPED:
   html.s9-swipe is set by theme-moon/s9-film.js on a scroll and taken off 180 ms after the last one; a card that is turning (.s925-hostturn) keeps it.
   At rest every card is exactly as before. Backup: backups/s9-card_before_threadSPEED_2026-11-16.css */
html.s9-swipe.s9-pins [data-wall-grid] > [data-sku]:not(.s925-hostturn){perspective:none!important;-webkit-perspective:none!important}
