/* Shalvit Store — house style: navy #0B2447 + gold #C9A227.
   CONTRAST LAW: pairs asserted in store-core.js PALETTE (>= 4.5:1);
   white text is never placed on gold. */
:root{
  --navy:#0B2447; --navy-deep:#071833; --gold:#C9A227; --gold-soft:#F3D27A;
  --ink:#1F2937; --muted:#4B5563; --ground:#F6F3EC; --card:#FFFFFF;
  --live-bg:#14532D; --soon-bg:#FEF3C7; --soon-fg:#92400E;
  --line:#E5E0D2; --shadow:0 10px 24px rgba(11,36,71,.14);
}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--ground);color:var(--ink)}
a{color:var(--navy)}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

/* ── Top bar + hero ─────────────────────────────── */
.store-top{background:var(--navy-deep);color:#fff;padding:10px 16px;display:flex;gap:14px;align-items:center}
.store-top a{color:#fff;text-decoration:none;font-weight:600}
.store-top .brand{color:var(--gold);font-weight:800;letter-spacing:.02em}
.store-top .brand .spark{color:var(--gold-soft);margin-right:7px;font-size:.9em;text-shadow:0 0 9px rgba(243,210,122,.85)}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .store-top .brand{background:linear-gradient(92deg,var(--gold-soft),var(--gold) 55%,var(--gold-soft));-webkit-background-clip:text;background-clip:text;color:transparent}
  .store-top .brand .spark{color:var(--gold-soft);-webkit-text-fill-color:var(--gold-soft)}
}
/* Gold sheen that drifts across the navy glass — decoration only, at low
   opacity, and fully off under prefers-reduced-motion (see the end). */
@keyframes shalvit-sheen{0%{transform:translateX(-140%) skewX(-18deg)}55%,100%{transform:translateX(260%) skewX(-18deg)}}
.hero{position:relative;overflow:hidden;background:linear-gradient(160deg,var(--navy) 0%,var(--navy-deep) 100%);color:#fff;padding:34px 16px 26px;text-align:center}
.hero::after{content:"";position:absolute;top:0;bottom:0;left:0;width:42%;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(243,210,122,.15),rgba(255,255,255,.09),transparent);
  animation:shalvit-sheen 8s ease-in-out infinite}
.hero h1{margin:0 0 6px;font-size:2rem;color:#fff}
.hero h1 .gold{color:var(--gold)}
.hero p{margin:4px auto;max-width:640px;color:#E8ECF4}
.hero .count{color:var(--gold);font-weight:700}
.searchbar{max-width:560px;margin:16px auto 4px;display:flex;gap:8px}
.searchbar input{flex:1;padding:12px 14px;border-radius:999px;border:2px solid var(--gold);font-size:1rem;color:var(--ink);background:#fff}
.searchbar input:focus{outline:3px solid var(--gold-soft);outline-offset:2px}

.wrap{max-width:1080px;margin:0 auto;padding:18px 14px 40px}
section{margin:20px 0}

/* ── Category chips ─────────────────────────────── */
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 6px}
.chip{border:2px solid var(--navy);background:#fff;color:var(--navy);border-radius:999px;padding:7px 14px;font-weight:700;cursor:pointer;font-size:.92rem;transition:border-color .18s ease,background .18s ease,color .18s ease,transform .12s ease}
.chip:hover{border-color:var(--gold)}
.chip:active{transform:scale(.97)}
.chip .n{color:var(--muted);font-weight:600}
.chip[aria-pressed="true"]{background:var(--navy);color:#fff}
.chip[aria-pressed="true"] .n{color:var(--gold-soft)}

h2.section{color:var(--navy);margin:22px 0 10px;font-size:1.25rem;border-bottom:3px solid var(--gold);display:inline-block;padding-bottom:3px}

/* ── Category art panels (WOW pass) ─────────────── */
.cat-panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
.cat-panel{position:relative;overflow:hidden;text-align:left;cursor:pointer;border:2px solid rgba(201,162,39,.55);border-radius:16px;
  padding:16px;color:#fff;font:inherit;display:flex;flex-direction:column;gap:4px;min-height:118px;justify-content:flex-end;
  background:radial-gradient(130% 120% at 12% 0%,rgba(243,210,122,.28),rgba(243,210,122,0) 52%),linear-gradient(150deg,var(--from),var(--to));
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.cat-panel:hover{transform:translateY(-3px);border-color:var(--gold);box-shadow:0 12px 26px rgba(11,36,71,.30),0 0 20px rgba(201,162,39,.30)}
.cat-panel:active{transform:scale(.98)}
.cat-panel[aria-pressed="true"]{border-color:var(--gold-soft);box-shadow:0 0 0 2px var(--gold-soft),0 12px 26px rgba(11,36,71,.30)}
.cat-panel-label{font-weight:800;font-size:1.04rem;line-height:1.25;color:#fff}
.cat-panel-count{color:var(--gold-soft);font-weight:800;font-size:.9rem;text-transform:uppercase;letter-spacing:.05em}
.cat-panel-feat{color:#E8ECF4;font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ── The two doors + game-type chips (2026-11-24) ── */
.door-panels{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.door-panel{min-height:150px}
.door-label{font-size:1.5rem}
.chips-types{align-items:center}
.chips-types .type-lead{font-weight:800;color:var(--navy);margin-right:2px}
.chip-type{border-style:dashed}
.chip-type[aria-pressed="true"]{background:var(--gold);border-color:var(--gold);color:var(--navy)}
.chip-type[aria-pressed="true"] .n{color:var(--navy)}

/* ── Featured hero (the headline app) ───────────── */
.hero-feature-card{position:relative;overflow:hidden;background:linear-gradient(150deg,rgba(255,255,255,.07),rgba(255,255,255,0) 46%),linear-gradient(150deg,var(--navy) 0%,var(--navy-deep) 100%);border:2px solid var(--gold);border-radius:20px;padding:22px;display:flex;gap:20px;align-items:center;box-shadow:var(--shadow),0 0 34px rgba(201,162,39,.28),inset 0 1px 0 rgba(255,255,255,.22)}
.hero-feature-card::after{content:"";position:absolute;top:0;bottom:0;left:0;width:38%;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(243,210,122,.17),rgba(255,255,255,.10),transparent);
  animation:shalvit-sheen 10s ease-in-out infinite}
.hero-feature-icon .app-icon{width:96px;height:96px;font-size:2.1rem;border-radius:24px}
.hero-feature-main{min-width:0}
.badge-editors{position:relative;overflow:hidden;background:var(--gold);color:var(--navy);text-transform:uppercase;letter-spacing:.05em}
.badge-editors::after{content:"";position:absolute;top:0;bottom:0;left:0;width:45%;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent);
  animation:shalvit-sheen 5.5s ease-in-out infinite}
.hero-feature-name{color:#fff;margin:8px 0 4px;font-size:1.65rem;line-height:1.15}
.hero-feature-tag{color:#E8ECF4;margin:0 0 8px;font-size:1.02rem}
.hero-feature-facts{color:var(--gold-soft);font-weight:700;font-size:.92rem;margin:0 0 14px}
.hero-feature-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.btn-ghost{border:2px solid #fff;color:#fff;background:transparent}
.btn-ghost:hover{background:rgba(255,255,255,.12)}

/* ── Second feature band ────────────────────────── */
.feature-band{display:flex;gap:14px;align-items:center;background:var(--card);border:2px solid var(--gold);border-radius:16px;padding:14px 16px;margin-top:12px;text-decoration:none;color:var(--ink);transition:transform .18s ease,box-shadow .18s ease}
.feature-band:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.feature-band:active{transform:scale(.99)}
.feature-band .app-icon{width:60px;height:60px;font-size:1.25rem;border-radius:15px}
.feature-band-main{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.feature-band-top{display:flex;gap:6px;flex-wrap:wrap}
.feature-band-name{font-weight:800;color:var(--navy);font-size:1.08rem}
.feature-band-tag{color:var(--muted);font-size:.9rem}
.feature-band-go{color:var(--navy);font-weight:800;font-size:1.3rem}

/* ── Rails + grid ───────────────────────────────── */
.rail{display:flex;gap:12px;overflow-x:auto;padding:6px 2px 14px;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.rail::-webkit-scrollbar{display:none}
.rail .card{flex:0 0 158px;scroll-snap-align:start}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.card{display:flex;flex-direction:column;gap:9px;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px;text-decoration:none;color:var(--ink);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.card:hover{border-color:var(--gold);transform:translateY(-3px);box-shadow:var(--shadow)}
.card-featured{border:2px solid var(--gold);box-shadow:0 0 18px rgba(201,162,39,.30)}
.card-featured:hover{box-shadow:var(--shadow),0 0 26px rgba(201,162,39,.45)}
.card:active{transform:scale(.98)}
.app-icon{flex:0 0 auto;width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(145deg,hsl(var(--h,222) 55% 26%),hsl(var(--h,222) 60% 16%));color:#fff;font-weight:800;font-size:1.1rem;border:2px solid var(--gold)}
.card-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.card-name{font-weight:800;color:var(--navy);line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.5em}
.card-genre{color:var(--muted);font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-meta{display:flex;gap:6px;align-items:center;margin-top:5px;flex-wrap:wrap}
.card-facts{color:var(--muted);font-size:.8rem;font-weight:600}
.stars{color:var(--soon-fg);font-size:.85rem;letter-spacing:.05em}
.stars-n{color:var(--ink);font-weight:700;margin-left:4px;letter-spacing:0}

/* ── Badges + buttons ───────────────────────────── */
.badge{display:inline-block;border-radius:999px;padding:2px 10px;font-size:.76rem;font-weight:800}
.badge-live{background:var(--live-bg);color:#fff}
.badge-prod{background:var(--gold);color:var(--navy)}
.badge-soon{background:var(--soon-bg);color:var(--soon-fg)}
.btn{display:inline-block;border-radius:999px;padding:12px 22px;font-weight:800;text-decoration:none;font-size:1rem;transition:filter .15s ease,transform .12s ease,background .15s ease}
.btn-gold{background:var(--gold);color:var(--navy)}
.btn-gold:hover{filter:brightness(1.07)}
.btn:active{transform:scale(.97)}
.btn-quiet{background:#E7E2D4;color:var(--muted)}

/* ── In-page install flow (Phase 1) ─────────────────
   The button itself counts the download: a navy progress ring on
   the gold button, real MB + % beside it, a quiet Cancel while it
   runs. Colours are the locked pairs (navy on gold; muted on the
   page ground) — the wow layer is untouched. */
.install-flow{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.install-btn{display:inline-flex;align-items:center;gap:10px;border:none;cursor:pointer;font:inherit}
.install-btn[disabled]{opacity:.75;cursor:default}
.install-ring{flex:0 0 auto;transform:rotate(-90deg)}
.install-ring circle{fill:none;stroke-width:3.5}
.ring-track{stroke:rgba(11,36,71,.28)}
.ring-bar{stroke:var(--navy);stroke-linecap:round;stroke-dasharray:56.5487;stroke-dashoffset:56.5487;transition:stroke-dashoffset .18s ease}
.install-status{color:var(--muted);font-weight:700;font-size:.92rem}
.install-cancel,.install-reset{background:none;border:none;color:var(--navy);font:inherit;font-weight:700;font-size:.92rem;cursor:pointer;text-decoration:underline;text-underline-offset:3px;padding:6px 2px}

/* ── Premium install experience (Phase 2) ─────────────────
   The progress also fills the button itself (a navy wash growing
   across the gold, under the label), the Cancel is a round ×
   beside the button, and a failure speaks in the house error red
   (PALETTE pair: #B91C1C on the page ground). */
.install-btn{position:relative;overflow:hidden}
.install-fill{position:absolute;top:0;left:0;bottom:0;width:0;background:rgba(11,36,71,.16);transition:width .18s ease;pointer-events:none}
.install-btn .install-ring,.install-btn .install-label{position:relative;z-index:1}
.install-btn .install-label{white-space:nowrap}
.install-cancel{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;border:2px solid var(--navy);background:#fff;color:var(--navy);font-size:1.2rem;font-weight:800;line-height:1;text-decoration:none;padding:0;flex:0 0 auto}
.install-cancel[hidden],.install-reset[hidden]{display:none}
.install-flow[data-state="error"] .install-status{color:#B91C1C}

.note{background:#fff;border-left:4px solid var(--gold);border-radius:8px;padding:12px 14px;color:var(--ink)}
.note-ios{border-left-color:var(--navy)}
.empty{color:var(--muted);padding:18px 4px}

/* ── Detail page ────────────────────────────────── */
.detail-head{display:flex;gap:16px;align-items:center;margin-top:8px}
.detail-hero{position:relative;border-radius:18px;padding:14px 16px;
  background:linear-gradient(100deg,hsl(var(--h,222) 55% 91%),rgba(255,255,255,0) 68%)}
.detail-hero .app-icon{box-shadow:0 0 24px hsl(var(--h,222) 70% 45% / .45)}
.detail-head .app-icon{width:76px;height:76px;font-size:1.5rem;border-radius:18px}
.detail-head h1{margin:0;color:var(--navy);font-size:1.7rem}
.tagline{color:var(--muted);margin:4px 0 8px}
.detail-badges{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px}
.detail-strip{display:flex;gap:6px;flex-wrap:wrap;margin:0}
.strip-chip{background:#fff;border:1px solid var(--line);border-radius:999px;padding:3px 12px;font-size:.85rem;font-weight:600;color:var(--ink)}
.detail-actions{margin:18px 0 12px}
#detail section>h2{color:var(--navy)}
.prose p{line-height:1.65;max-width:68ch;font-size:1.02rem}
.shots-row{display:flex;gap:10px;overflow-x:auto;padding-bottom:10px;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.shots-row::-webkit-scrollbar{display:none}
.shot{margin:0;flex:0 0 172px;min-height:128px;scroll-snap-align:start;background:linear-gradient(160deg,var(--navy),var(--navy-deep));color:#fff;border:1px solid var(--gold);border-radius:14px;padding:18px 12px;text-align:center;display:flex;flex-direction:column;justify-content:center;gap:6px}
/* Screenshot gallery (WOW pass): one large stage, thumbs beneath. */
.shot-stage{position:relative;overflow:hidden;border:2px solid var(--gold);border-radius:18px;min-height:230px;
  margin-bottom:10px;padding:26px 18px;text-align:center;display:flex;flex-direction:column;justify-content:center;gap:8px;color:#fff;
  background:radial-gradient(120% 130% at 15% 0%,hsl(var(--h,222) 60% 26%),rgba(0,0,0,0) 60%),linear-gradient(160deg,var(--navy),var(--navy-deep));
  box-shadow:0 0 22px hsl(var(--h,222) 70% 45% / .35)}
.shot-stage-label{font-size:1.7rem;font-weight:800;color:#fff}
.shot-stage-cap{color:var(--gold-soft);font-weight:600}
.shot-thumb{cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.shot-thumb:hover{transform:translateY(-2px)}
.shot-thumb.is-active{border:3px solid var(--gold);box-shadow:0 0 16px rgba(201,162,39,.5)}
.shot span{font-weight:800;color:#fff}
.shot figcaption{color:var(--gold-soft);font-size:.8rem}
.lesson{background:#fff;border:2px solid var(--gold);border-radius:12px;padding:6px 16px}
.facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.facts div{background:#fff;border-radius:10px;padding:10px 12px}
.facts dt{color:var(--muted);font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.facts dd{margin:3px 0 0;color:var(--ink);font-weight:600}

/* ── Glitter-edge lights (owner, 2026-11-22) ─────────
   Animated light that travels along EDGES only. A shimmering
   multi-colour ring — gold leading, with emerald, sapphire, violet
   and ruby moving through it — drawn as a masked border layer
   (::before, padding ring only) around the featured / Editors'
   Choice card and the detail page's hero card; plus a fine light
   line framing the top hero zone along the hero's lower edge.
   Pure CSS: no JS, no assets, no extra requests. The travel is
   slow and smooth (a full circuit in 9s / 12s — a drift of colour,
   never a flash or strobe) and fully stilled under
   prefers-reduced-motion. The light lives on borders and edges
   only, never behind text, so every PALETTE pair is untouched and
   the locked colours stay exactly as the owner approved them. */
@property --glitter-a{syntax:"<angle>";initial-value:0deg;inherits:false}
@keyframes shalvit-glitter-travel{to{--glitter-a:360deg}}
@keyframes shalvit-line-travel{from{background-position-x:0}to{background-position-x:600px}}
.hero-feature-card::before,.detail-hero::before{
  content:"";position:absolute;inset:0;border-radius:inherit;padding:2.5px;pointer-events:none;
  background:conic-gradient(from var(--glitter-a),
    #FFF3C4 0deg,#F3D27A 16deg,#C9A227 54deg,#34D399 120deg,#3B82F6 178deg,
    #A78BFA 236deg,#F43F5E 294deg,#F3D27A 338deg,#FFF3C4 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
  filter:saturate(1.25) brightness(1.07);
  animation:shalvit-glitter-travel 9s linear infinite}
.hero::before{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;pointer-events:none;
  background:repeating-linear-gradient(90deg,
    #C9A227 0 90px,#F3D27A 90px 150px,#34D399 150px 240px,#3B82F6 240px 330px,
    #A78BFA 330px 420px,#F43F5E 420px 510px,#C9A227 510px 600px);
  box-shadow:0 0 14px rgba(201,162,39,.55),0 0 5px rgba(243,210,122,.8);
  animation:shalvit-line-travel 12s linear infinite}

/* ── Footer ─────────────────────────────────────── */
.store-foot{background:var(--navy);color:#E8ECF4;padding:22px 16px;margin-top:10px}
.store-foot a{color:var(--gold)}
.store-foot .fine{color:#C7CEDD;font-size:.88rem}

/* ── Every-screen design (WOW pass) ────────────────
   Five designed classes, not one stretched page:
   phone (base, ≤599) · large phone / small tablet ≥600 · iPad ≥820 ·
   laptop ≥1200 · TV ≥1600 (grand, remote-friendly). */

/* Large phone / small tablet */
@media (min-width:600px){
  .hero h1{font-size:2.35rem}
  .grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
  .rail .card{flex-basis:172px}
  .cat-panel{min-height:128px}
  .shot-stage{min-height:260px}
}

/* iPad */
@media (min-width:820px){
  .wrap{max-width:1180px;padding:22px 22px 48px}
  .hero{padding:44px 24px 34px}
  .hero h1{font-size:2.7rem}
  .grid{grid-template-columns:repeat(auto-fill,minmax(224px,1fr));gap:14px}
  .rail{gap:14px}
  .rail .card{flex-basis:196px}
  .hero-feature-card{padding:28px}
  .hero-feature-icon .app-icon{width:120px;height:120px;font-size:2.6rem;border-radius:29px}
  .hero-feature-name{font-size:1.95rem}
  .cat-panels{gap:12px}
  .cat-panel{min-height:140px;padding:18px}
  .shot-stage{min-height:320px}
  .shot-stage-label{font-size:2.1rem}
  .detail-head .app-icon{width:92px;height:92px;font-size:1.8rem;border-radius:22px}
}

/* Laptop */
@media (min-width:1200px){
  .wrap{max-width:1340px}
  .hero h1{font-size:3rem}
  .grid{grid-template-columns:repeat(auto-fill,minmax(252px,1fr));gap:16px}
  .rail .card{flex-basis:216px}
  .hero-feature-icon .app-icon{width:136px;height:136px;font-size:3rem;border-radius:33px}
  .hero-feature-name{font-size:2.2rem}
  .hero-feature-tag{font-size:1.12rem}
  .cat-panel{min-height:152px}
  .shot-stage{min-height:380px}
  .facts{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
}

/* TV — the grand room: cinematic hero, wide rails, big targets,
   focus rings a remote can follow from the sofa. */
@media (min-width:1600px){
  body{font-size:19px}
  .wrap{max-width:1760px;padding:30px 36px 64px}
  .store-top{padding:16px 28px}
  .store-top .brand{font-size:1.3rem}
  .hero{padding:64px 32px 52px}
  .hero h1{font-size:3.9rem}
  .hero p{max-width:900px;font-size:1.25rem}
  .searchbar{max-width:820px}
  .searchbar input{padding:18px 22px;font-size:1.2rem}
  .chip{padding:13px 26px;font-size:1.08rem;min-height:58px}
  .btn{padding:18px 36px;font-size:1.18rem}
  h2.section{font-size:1.7rem}
  .hero-feature-card{padding:42px;border-radius:28px;gap:34px}
  .hero-feature-icon .app-icon{width:168px;height:168px;font-size:3.7rem;border-radius:40px}
  .hero-feature-name{font-size:3rem}
  .hero-feature-tag{font-size:1.3rem}
  .hero-feature-facts{font-size:1.1rem}
  .feature-band{padding:22px 26px}
  .feature-band .app-icon{width:84px;height:84px;font-size:1.7rem;border-radius:20px}
  .feature-band-name{font-size:1.35rem}
  .grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:20px}
  .rail{gap:18px;padding-bottom:20px}
  .rail .card{flex-basis:288px;padding:20px}
  .card .app-icon{width:76px;height:76px;font-size:1.5rem;border-radius:19px}
  .cat-panels{gap:16px}
  .cat-panel{min-height:190px;padding:24px;border-radius:22px}
  .cat-panel-label{font-size:1.45rem}
  .cat-panel-count{font-size:1.05rem}
  .cat-panel-feat{font-size:1rem}
  .shot-stage{min-height:520px}
  .shot-stage-label{font-size:3rem}
  .shot{flex-basis:230px;min-height:170px}
  .detail-head .app-icon{width:120px;height:120px;font-size:2.3rem;border-radius:29px}
  .detail-head h1{font-size:2.6rem}
  :focus-visible{outline:5px solid var(--gold);outline-offset:4px;box-shadow:0 0 0 8px rgba(201,162,39,.35)}
}

/* ── Phone-first ────────────────────────────────── */
@media (max-width:560px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-feature-card{flex-direction:column;align-items:flex-start;padding:18px}
  .hero-feature-icon .app-icon{width:76px;height:76px;font-size:1.6rem;border-radius:19px}
  .hero-feature-name{font-size:1.4rem}
  .rail .card{flex-basis:142px}
  .detail-head{align-items:flex-start}
  .detail-head h1{font-size:1.4rem}
}
@media (prefers-reduced-motion: reduce){
  *{transition:none!important;animation:none!important}
  .hero::after,.hero-feature-card::after,.badge-editors::after{display:none}
  /* Glitter-edge lights are stilled too: the rings and the hero
     light line stay as quiet static colour, with no travel at all. */
  .hero::before,.hero-feature-card::before,.detail-hero::before{animation:none!important}
}

/* ═══════════════════════════════════════════════════════════════════
   PLAY-STORE ANATOMY PASS (owner's order 2026-11-22 ~00:37, from his
   Street Racing 3D screenshots) — ADDITIVE ONLY, under the
   IMPROVE-ONLY LAW: the facts row, the real-screenshot gallery, and
   ratings & reviews. Every colour below is an existing PALETTE pair
   from store-core.js (the error line's pair was added to the palette
   in the same pass) — no new ground is introduced.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Facts row (Play-style: rating · downloads · size · age) ─────── */
.facts-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); margin: 16px 0 4px; overflow: hidden;
}
.fact-cell {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 6px; text-align: center;
}
.fact-cell + .fact-cell { border-left: 1px solid var(--line); }
.fact-value { font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.fact-label { font-size: 12px; color: var(--muted); }

/* ── Real screenshot gallery (pictures, not labels) ──────────────── */
.shot-stage.has-img {
  padding: 0; display: block; min-height: 0; overflow: hidden;
}
.shot-stage-img {
  display: block; width: 100%; height: auto; background: var(--navy);
}
.shot-stage.has-img .shot-stage-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 16px 12px; text-align: left;
  background: linear-gradient(transparent, rgba(7, 24, 51, .88));
  color: var(--gold-soft);
}
.shot-thumb.has-img { padding: 0; overflow: hidden; background: var(--navy); }
.shot-thumb.has-img img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover;
}
.shot-thumb.has-img figcaption {
  position: static; padding: 6px 10px; font-size: 12px; color: var(--cream);
  text-align: left;
}

/* ── Ratings & reviews ───────────────────────────────────────────── */
.reviews { margin-top: 8px; }
.reviews-demo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.reviews-thanks { font-weight: 700; }
.rev-summary {
  display: flex; gap: 28px; flex-wrap: wrap; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin: 12px 0;
}
.rev-avg-block { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.rev-avg { font-size: 44px; font-weight: 800; color: var(--ink); line-height: 1; }
.rev-stars { font-size: 20px; }
.rev-count { color: var(--muted); font-size: 14px; }
.rev-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 5px; }
.rev-bar-row { display: flex; align-items: center; gap: 10px; }
.rev-bar-star { width: 34px; font-size: 13px; font-weight: 700; color: var(--ink); }
.rev-bar-track {
  flex: 1; height: 10px; border-radius: 999px; background: var(--ground);
  border: 1px solid var(--line); overflow: hidden;
}
.rev-bar-fill { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.rev-bar-n { width: 30px; font-size: 13px; color: var(--muted); }
.review-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; margin: 0 0 12px;
}
.review-head { margin: 0 0 6px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.review-head .stars { font-size: 15px; }
.review-date { color: var(--muted); font-size: 13px; }
.review-text { margin: 0; }
.review-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin-top: 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.review-form h3 { margin: 0; font-size: 19px; }
.review-field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.review-field input[type="text"], .review-field textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.review-field input[type="text"]:focus, .review-field textarea:focus {
  outline: 3px solid var(--gold); outline-offset: 1px;
}
.review-stars-field { border: 0; padding: 0; margin: 0; }
.review-stars-field legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.review-stars { display: flex; gap: 8px; flex-wrap: wrap; }
.rev-star input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rev-star span {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--gold-deep); color: var(--gold-deep);
  font-weight: 800; cursor: pointer; background: var(--card);
}
.rev-star input:checked + span { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.rev-star input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.review-error { margin: 0; color: #B91C1C; font-weight: 700; }
.review-submit { align-self: flex-start; }

/* Grand room (TV): the anatomy scales with the rest of the page. */
@media (min-width: 1600px) {
  .fact-value { font-size: 26px; }
  .fact-label { font-size: 14px; }
  .rev-avg { font-size: 56px; }
  .rev-stars { font-size: 24px; }
  .review-form h3 { font-size: 23px; }
}

/* ── FEED-FIRST STOREFRONT (owner order 2026-11-24 ~21:31) ──────────
   The store opens on the feed; doors and shelves are filters below.
   New pairings reuse PALETTE pairs only: the New badge is navy text on
   gold (the badge-prod pair); feed notes are the muted pair on the
   page ground; icon images sit on white, never under text. */
.badge-fresh{background:var(--gold);color:var(--navy)}
.app-icon-img{object-fit:cover;background:#fff}
.feed-note{color:var(--muted);margin:-4px 0 2px;max-width:64ch}
.feed-rail .feed-card{flex-basis:200px}
.feed-card .card-top{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.feed-card .card-tag{color:var(--muted);font-size:.9rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Living Light reaches the primary buttons too (House App Standard
   §9): one warm sweep across, then a long rest — same sheen family as
   the hero. Install labels stay above it (z-index 1, set above). */
.btn-gold{position:relative;overflow:hidden}
.btn-gold::after{content:"";position:absolute;top:0;bottom:0;left:0;width:45%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.5),transparent);
  transform:translateX(-130%) skewX(-12deg);animation:shalvit-sheen 6.5s ease-in-out infinite}
/* The lights rest while the page is in the background (store.js
   toggles .lights-paused on <html> with visibilitychange). */
html.lights-paused .hero::after,html.lights-paused .hero-feature-card::after,
html.lights-paused .badge-editors::after,html.lights-paused .btn-gold::after,
html.lights-paused .hero::before,html.lights-paused .hero-feature-card::before,
html.lights-paused .detail-hero::before{animation-play-state:paused}
/* Icon-led gallery: the real icon, large and honestly captioned, for
   items whose screen captures are still owed. */
.shot-stage.has-icon{align-items:center}
.shot-stage-icon{width:168px;height:168px;border-radius:38px;border:2px solid var(--gold);
  box-shadow:0 14px 34px rgba(0,0,0,.35);background:#fff;object-fit:cover}
.shot-thumb.has-icon{padding:8px}
.shot-thumb.has-icon img{width:100%;height:96px;object-fit:cover;border-radius:9px;display:block}
@media (max-width:560px){
  .feed-rail .feed-card{flex-basis:172px}
  .shot-stage-icon{width:132px;height:132px;border-radius:30px}
}
@media (min-width:600px){ .feed-rail .feed-card{flex-basis:224px} }
@media (min-width:820px){ .feed-rail .feed-card{flex-basis:248px} }
@media (min-width:1600px){
  .feed-rail .feed-card{flex-basis:308px}
  .shot-stage-icon{width:210px;height:210px;border-radius:46px}
}
