/* ALYSSIUN STORE v2: browse and search results (filters), one app's page, the
 * "Try now" window and a creator's page. Same tokens and the same glass as the
 * shell; see DESIGN-NOTES.md. */

/* Page heading + filters */
.sv-page-head { padding: clamp(28px, 5vw, 64px) 0 clamp(14px, 2vw, 22px); display: grid; gap: 6px; }
.sv-page-head h1 { margin: 0; font-size: clamp(34px, 5.6vw, 72px); font-weight: 200; line-height: 1.02; letter-spacing: -.02em; overflow-wrap: anywhere; }
.sv-page-head p { margin: 4px 0 0; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); max-width: 60ch; }
.sv-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.sv-back::before { content: "←"; }
.sv-back:hover { color: var(--text); }
.sv-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0 clamp(16px, 2.4vw, 26px); }
.sv-filter { display: inline-flex; border: 1px solid var(--hair-2); border-radius: var(--sv-r-s); overflow: hidden; background: var(--sv-glass); }
.sv-filter-btn { min-height: 44px; padding: 0 14px; border: 0; border-right: 1px solid var(--hair); background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background .16s ease, color .16s ease; -webkit-user-select: none; user-select: none; }
.sv-filter-btn:last-child { border-right: 0; }
.sv-filter-btn:hover { color: var(--text); }
.sv-filter-btn[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
.sv-filter-btn:focus-visible { outline: 2px solid var(--text); outline-offset: -3px; }
.sv-filter-select { margin: 0; display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 400; color: var(--muted); }
.sv-filter-select span { white-space: nowrap; }
.sv-filter-select select { width: auto; min-height: 44px; padding-top: 0; padding-bottom: 0; border-color: var(--hair-2); border-radius: var(--sv-r-s); font-size: 13px; }
@media (max-width: 719px) {
  .sv-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--sv-pad) * -1); padding-left: var(--sv-pad); padding-right: var(--sv-pad); }
  .sv-filters::-webkit-scrollbar { display: none; }
  .sv-filter, .sv-filter-select { flex: none; }
  .sv-filter-select span { display: none; }
}
.sv-empty { margin: clamp(10px, 2vw, 24px) 0; padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 48px); border: 1px solid var(--hair); border-radius: var(--sv-r-l); background: var(--sv-glass); text-align: center; }
.sv-empty h2 { margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 40px); font-weight: 200; overflow-wrap: anywhere; }
.sv-empty p { margin: 0 auto; max-width: 52ch; color: var(--muted); }
.sv-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* One app's page */
.sv-listing { display: grid; gap: clamp(16px, 2.4vw, 26px); padding: clamp(10px, 2vw, 22px) 0 0; }
.sv-listing-head { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); min-width: 0; }
.sv-listing-title { min-width: 0; display: grid; gap: 8px; justify-items: start; }
.sv-listing-title h1 { margin: 0; font-size: clamp(36px, 6.4vw, 84px); font-weight: 200; line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.sv-listing-title .sv-by { font-size: 15px; white-space: normal; min-height: 28px; display: inline-flex; align-items: center; }
.sv-listing-title .sv-by:hover { color: var(--text); }
.sv-listing-chips, .sv-tags, .sv-creator-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-lead { margin: 0; max-width: 46ch; font-size: clamp(18px, 2.2vw, 24px); font-weight: 300; line-height: 1.4; }
.sv-listing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sv-in { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding-right: 8px; font-size: 14px; }
.sv-in svg { width: 16px; height: 16px; fill: none; stroke: var(--sv-check); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Under review: a plain note under the buttons, not an alarm. */
.sv-ur-notice { margin: 0; max-width: 64ch; padding: 12px 16px; border: 1px solid var(--hair-2); border-radius: var(--sv-r-m); background: var(--sv-glass); color: var(--text); font-size: 14px; line-height: 1.5; }
.sv-gallery { display: grid; gap: 10px; }
.sv-gallery-stage { position: relative; aspect-ratio: 16 / 10; max-height: 78vh; border: 1px solid var(--hair-2); border-radius: var(--sv-r-l); overflow: hidden; background: var(--void-2); box-shadow: var(--sv-shadow); }
.sv-gallery-stage img, .sv-gallery-stage .store-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.sv-thumb { flex: none; width: clamp(84px, 14vw, 150px); aspect-ratio: 16 / 10; padding: 0; border: 1px solid var(--hair); border-radius: var(--sv-r-m); overflow: hidden; background: var(--void-2); cursor: pointer; opacity: .6; transition: opacity .18s ease, border-color .18s ease; }
.sv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-thumb:hover, .sv-thumb[aria-selected="true"] { opacity: 1; border-color: var(--text); }
.sv-listing-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr); gap: clamp(20px, 4vw, 56px); align-items: start; padding-top: clamp(6px, 1.4vw, 16px); }
.sv-about h2 { margin: 0 0 12px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 200; }
.sv-about p { margin: 0 0 14px; max-width: 64ch; font-size: 16px; line-height: 1.6; color: var(--text); white-space: pre-line; }
.sv-facts { display: grid; gap: 14px; }
.sv-facts dl { margin: 0; border-top: 1px solid var(--hair); }
.sv-facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.sv-facts dt { color: var(--muted); flex: none; }
.sv-facts dd { margin: 0; text-align: right; }
.sv-facts dd a { text-decoration: underline; }
.sv-creator-card { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--hair); border-radius: var(--sv-r-l); background: var(--sv-glass); color: var(--text); transition: border-color .18s ease, background .18s ease; }
.sv-creator-card:hover { border-color: var(--hair-2); background: var(--sv-glass-strong); }
.sv-creator-card .sv-avatar { width: 52px; height: 52px; font-size: 22px; flex: none; }
.sv-creator-card span:last-child { display: grid; min-width: 0; }
.sv-creator-card small { color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.sv-creator-card strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-creator-card em { font-style: normal; color: var(--muted); font-size: 13px; }
.sv-link { border: 0; background: none; min-height: 44px; padding: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.sv-link:hover { color: var(--text); }
.sv-report-form { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--hair); border-radius: var(--sv-r-l); background: var(--sv-glass); }
.sv-report-form[hidden] { display: none; }
.sv-report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sv-note { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; }
@media (max-width: 819px) { .sv-listing-cols { grid-template-columns: 1fr; } }
@media (max-width: 539px) {
  .sv-listing-head { align-items: flex-start; }
  .sv-listing-actions > .sv-btn { flex: 1 1 100%; }
  .sv-gallery-stage { margin: 0 calc(var(--sv-pad) * -1); border-left: 0; border-right: 0; border-radius: 0; }
}

/* Try now */
.sv-try { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; background: var(--bg); animation: sv-try-in .28s var(--sv-ease) both; }
@keyframes sv-try-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.sv-try-bar { flex: none; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: calc(8px + env(safe-area-inset-top, 0px)) clamp(10px, 2vw, 20px) 8px; border-bottom: 1px solid var(--hair); background: var(--nav-bg); }
.sv-try-bar .sv-app-icon { width: 40px; height: 40px; }
.sv-try-name { min-width: 0; display: grid; margin-right: auto; }
.sv-try-name strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-try-name span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-try-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.sv-try-actions .sv-add { min-height: 44px; background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.sv-try-actions .sv-add.is-added, .sv-try-actions .sv-add.is-included { background: transparent; color: var(--muted); border-color: transparent; }
.sv-try-body { position: relative; flex: 1 1 auto; min-height: 0; background: var(--void-2); }
.sv-try-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.sv-try-load { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: var(--muted); font-size: 14px; pointer-events: none; }
.sv-try-fallback { height: 100%; overflow: auto; padding: clamp(20px, 4vw, 48px); display: grid; gap: 18px; justify-items: center; align-content: start; text-align: center; }
.sv-try-fallback p { margin: 0; max-width: 48ch; color: var(--muted); }
.sv-try-fallback p strong { color: var(--text); font-weight: 500; }
.sv-try-shots { display: grid; gap: 12px; width: min(100%, 980px); }
.sv-try-shots img { width: 100%; border: 1px solid var(--hair); border-radius: var(--sv-r-l); display: block; }
@media (max-width: 539px) { .sv-try-name span { display: none; } }

/* A creator's page */
.sv-creator { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); padding: clamp(28px, 5vw, 64px) 0 clamp(8px, 1.4vw, 16px); }
.sv-avatar.is-large { width: clamp(88px, 12vw, 132px); height: clamp(88px, 12vw, 132px); font-size: clamp(36px, 5vw, 56px); flex: none; }
.sv-creator-copy { min-width: 0; display: grid; gap: 10px; justify-items: start; }
.sv-creator-copy h1 { margin: 0; font-size: clamp(34px, 5.6vw, 72px); font-weight: 200; line-height: 1.02; letter-spacing: -.02em; overflow-wrap: anywhere; }
.sv-creator-copy p { margin: 0; max-width: 56ch; color: var(--muted); }
@media (max-width: 539px) { .sv-creator { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .sv-try { animation: none; } .sv-thumb, .sv-filter-btn, .sv-creator-card { transition: none; } }
/* Store versions: what changed in the version the Store runs, under About. */
.sv-whats-new { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hair); }
.sv-whats-new .sv-note { margin: 0 0 10px; }
