/* apps.silverlined.uk — Silver Lined store. Dark only (brand board "A — dark premium"). */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --charcoal: #0F172A;
  --ground: #0F172A;
  --ground-deep: #0B1222;
  --surface: #141E31;
  --surface-2: #162036;
  --surface-3: #1A2436;
  --line: #222D44;
  --line-2: #26324A;
  --line-3: #33405C;
  --text: #E8ECF3;
  --text-2: #B6C0D1;
  --muted: #9AA6BC;
  --dim: #8A96AB;
  --silver: #C0C6D4;
  --slate: #64748B;
  --metal: linear-gradient(180deg, #F2F4F8, #B9C0CD);
  --metal-hover: linear-gradient(180deg, #FFFFFF, #C8CEDA);
  --metal-on: linear-gradient(180deg, #EEF1F6, #BCC3D0);
  --ring: 0 0 0 2px var(--ground), 0 0 0 4px #DDE3EC;
  --radius: 14px;
  --radius-lg: 20px;
  --gutter: 32px;
  --max: 1280px;
  --head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 15px/1.55 var(--body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
code, .mono { font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92em; }
::selection { background: #3A4866; color: #fff; }

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.btn:focus-visible, .pill:focus-visible, .chip:focus-visible, .tab:focus-visible { border-radius: 999px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--metal); color: var(--charcoal); padding: 10px 16px; border-radius: 999px; font-weight: 600;
  transition: top var(--t) var(--ease);
}
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.ico { width: 16px; height: 16px; flex: none; }

.store { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; padding-bottom: 56px; }
.main:focus { box-shadow: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ------------------------------------------------------------------ top bar */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 42, .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid #1F2A3D;
}
.topbar-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 24px; min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; border-radius: 8px; }
.brand-logo { height: 42px; width: auto; }
.brand-mark { display: none; height: 32px; width: 32px; }
.brand-apps {
  font: 600 12px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding-left: 12px; border-left: 1px solid var(--line-2); height: 20px; display: flex; align-items: center;
}
.search { position: relative; flex: 1; max-width: 460px; }
.search input {
  width: 100%; height: 42px; border-radius: 999px; padding: 0 44px 0 42px;
  background: var(--surface-3); border: 1px solid #27324A; color: var(--text);
  font: 400 14px var(--body); transition: border-color var(--t), background var(--t), box-shadow var(--t);
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--dim); }
.search input:hover { border-color: var(--line-3); }
.search input:focus { border-color: #5A6885; background: #1C273B; box-shadow: 0 0 0 3px rgba(192, 198, 212, .16); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.search-key {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font: 500 11px var(--body); color: var(--dim); border: 1px solid var(--line-3); border-radius: 6px; padding: 1px 7px;
}
.search input:focus ~ .search-key { opacity: 0; }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a {
  color: var(--silver); font: 500 14px var(--body); padding: 8px 12px; border-radius: 999px;
  transition: color var(--t), background var(--t);
}
.topnav a:hover { color: #fff; background: rgba(192, 198, 212, .08); }
.topnav a[aria-current="page"] { color: #fff; background: rgba(192, 198, 212, .1); }
.account:empty { display: none; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 600 14px/1 var(--body); white-space: nowrap; user-select: none;
  transition: transform var(--t) var(--ease), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t);
}
.btn .ico { width: 16px; height: 16px; }
.btn--silver {
  background: var(--metal); color: var(--charcoal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 24px -12px rgba(0, 0, 0, .8);
}
.btn--silver:hover { background: var(--metal-hover); box-shadow: inset 0 1px 0 #fff, 0 10px 28px -10px rgba(192, 198, 212, .35); }
.btn--silver:active { transform: translateY(1px); }
.btn--ghost { border-color: var(--line-3); color: var(--silver); background: transparent; }
.btn--ghost:hover { border-color: #4A5874; color: #fff; background: rgba(192, 198, 212, .06); }
.btn--lg { height: 46px; padding: 0 24px; font-size: 14.5px; }
.btn--sm { height: 32px; padding: 0 14px; font-size: 12.5px; }
.btn--block { width: 100%; }
.btn--chip {
  height: 30px; padding: 0 15px; font-size: 12px; background: #E5E9F0; color: var(--charcoal);
  position: relative; z-index: 2;
}
.btn--chip:hover { background: #fff; }
.btn--chip .ico { width: 13px; height: 13px; }
.btn--chip-ghost { background: transparent; color: var(--silver); border-color: var(--line-3); }
.btn--chip-ghost:hover { background: rgba(192, 198, 212, .08); color: #fff; }
.app-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.link-btn {
  background: none; border: 0; padding: 4px 0; margin-top: 8px; cursor: pointer;
  color: var(--silver); font: 600 13.5px var(--body); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3);
}
.link-btn:hover { color: #fff; text-decoration-color: var(--silver); }

/* ------------------------------------------------------------------ hero */

.view-home { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 24px 0 26px; border-radius: var(--radius-lg); padding: 48px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; min-height: 340px;
  background: radial-gradient(900px 400px at 85% 10%, #33415C 0, transparent 60%), linear-gradient(135deg, #17213A, #0B1222);
  border: 1px solid var(--line-2);
}
.hero-art {
  position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: 68%; height: 100%; object-fit: cover; object-position: 80% 50%; z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}
.hero:has(.hero-art)::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11, 18, 34, .55) 0%, rgba(11, 18, 34, .35) 40%, rgba(11, 18, 34, 0) 62%);
}
.hero:has(.hero-art) .hero-shot { visibility: hidden; }
.eyebrow { font: 600 12px/1.2 var(--head); letter-spacing: .14em; color: #9AA6BC; text-transform: uppercase; }
.hero-title {
  font: 700 44px/1.08 var(--head); margin: 12px 0 14px; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #FFFFFF, #AEB6C5); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-text { color: #B0BACB; font-size: 16.5px; line-height: 1.55; margin: 0 0 26px; max-width: 46ch; }
.cta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cta-ghost { display: inline-flex; align-items: center; gap: 6px; color: var(--silver); font-size: 14px; font-weight: 500; padding: 6px 2px; border-radius: 6px; }
.cta-ghost .ico { transition: transform var(--t) var(--ease); }
.cta-ghost:hover { color: #fff; }
.cta-ghost:hover .ico { transform: translateX(3px); }
.hero-shot {
  height: 240px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #243049, #121A2C); border: 1px solid #2E3A55;
}
.hero-icon { width: 128px; height: 128px; border-radius: 30px; box-shadow: 0 30px 60px -20px #000; }

/* ------------------------------------------------------------------ platform bar + chips */

.platbar { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: 13px; color: var(--dim); flex-wrap: wrap; }
.platbar-label { color: var(--muted); }
.plat-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 999px; }
.plat-scroll::-webkit-scrollbar { display: none; }
.plat-pills { display: flex; gap: 4px; padding: 4px; border-radius: 999px; width: max-content; background: var(--surface-2); border: 1px solid var(--line-2); }
.pill {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px; font: 500 13px/1.2 var(--body); color: #A8B2C4;
  transition: background var(--t), color var(--t);
}
.pill .ico { width: 14px; height: 14px; }
.pill:hover { color: #fff; background: rgba(192, 198, 212, .08); }
.pill--on, .pill--on:hover { background: var(--metal-on); color: var(--charcoal); font-weight: 600; }
.platbar-note::before { content: "·"; margin-right: 10px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 30px; }
.chip {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--silver);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.chip:hover { border-color: #4A5874; color: #fff; background: #1A253C; }
.chips--more { margin: 40px 0 0; align-items: center; }
.chips-label { color: var(--muted); font-size: 13px; margin-right: 6px; }

/* ------------------------------------------------------------------ sections, grid, cards */

.section { margin: 0 0 40px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 14px; }
.section-title { font: 600 19px/1.3 var(--head); }
.section-sub { color: var(--muted); font-size: 13px; margin: -8px 0 14px; }
.section-more { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; border-radius: 6px; }
.section-more:hover { color: #fff; }
.section-more .ico { width: 13px; height: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.app-card {
  position: relative; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 236px;
  transition: transform var(--t) var(--ease), border-color var(--t), box-shadow var(--t), background var(--t);
}
.app-card:hover { transform: translateY(-2px); border-color: #34415D; background: #16213A; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9); }
.app-card:focus-within { border-color: #4A5874; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; object-fit: cover; background: #1E2940; flex: none; }
.app-icon--ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3B4A68, #1C2640); font: 700 20px var(--head); color: #D9DEE7;
}
.app-card-body { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.app-card-name { font: 600 15.5px/1.3 var(--head); }
.app-card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); z-index: 1; }
.app-card-link:focus-visible { box-shadow: none; }
.app-card-link:focus-visible::after { box-shadow: var(--ring); }
.app-card-meta { font-size: 11.5px; color: var(--dim); }
.app-card-tag {
  margin: 0; font-size: 13px; line-height: 1.45; color: #A3AEC1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.app-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plat-icons { display: flex; gap: 7px; color: var(--dim); }
.plat-icons .ico { width: 14px; height: 14px; }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; margin: -2px -2px 0;
  scrollbar-width: thin; scrollbar-color: #2C3852 transparent; overscroll-behavior-x: contain;
}
.rail > * { scroll-snap-align: start; }
.rail:focus-visible { border-radius: var(--radius); }
.app-card--compact { min-height: 0; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 12px; }
.app-card--compact .app-icon { width: 56px; height: 56px; border-radius: 13px; }
.app-card--compact .app-card-tag { -webkit-line-clamp: 2; }
.app-card--compact .app-card-foot { grid-column: 1 / -1; }

.promo {
  display: flex; align-items: center; gap: 16px; margin: -6px 0 30px; padding: 16px 20px; border-radius: var(--radius);
  border: 1px dashed var(--line-3); background: linear-gradient(90deg, rgba(26, 36, 54, .6), rgba(15, 23, 42, 0));
}
.promo-icon { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.promo-text { flex: 1; min-width: 0; font-size: 13.5px; }
.promo-title { font-weight: 600; color: var(--text); }
.personal-rows[hidden] { display: none; }

.panel { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-align: center; display: grid; gap: 8px; justify-items: center; }
.panel .btn { margin-top: 10px; }
.panel-title { font: 600 16px var(--head); color: var(--text); }
.panel--error { border-color: #4A3340; }
.panel--empty { border-style: dashed; border-color: var(--line-3); background: transparent; padding: 40px 24px; }

/* ------------------------------------------------------------------ list pages */

.view-list { padding-top: 28px; }
.page-head { position: relative; overflow: hidden; isolation: isolate; margin: 0 0 22px; }
.page-head--art { border-radius: var(--radius-lg); border: 1px solid var(--line-2); padding: 36px; min-height: 200px; display: flex; align-items: flex-end; }
.page-head-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-head--art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 18, 34, .92), rgba(11, 18, 34, .35)); }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; margin-bottom: 10px; border-radius: 6px; }
.crumb:hover { color: #fff; }
.page-title { font: 700 32px/1.15 var(--head); letter-spacing: -0.02em; }
.page-sub { color: var(--muted); margin-top: 6px; font-size: 14px; }
.view-list > .page-sub { margin: -6px 0 16px; }
.view-list > .platbar { margin-bottom: 22px; }

/* ------------------------------------------------------------------ app page */

.view-app { padding-bottom: 20px; }
.app-banner {
  position: relative; height: 260px; overflow: hidden;
  background: radial-gradient(700px 260px at 75% 0%, #3A4966 0, transparent 65%), linear-gradient(135deg, #1B2640, #0B1222);
  border-bottom: 1px solid var(--line);
}
.app-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.app-banner--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, .1) 40%, rgba(15, 23, 42, .85) 100%); }
.app-head { position: relative; display: flex; gap: 24px; align-items: flex-end; margin-top: -60px; }
.app-head-icon { width: 128px; height: 128px; border-radius: 30px; box-shadow: 0 24px 50px -14px #000; border: 1px solid #2E3A55; }
.app-titles { flex: 1; min-width: 0; padding-bottom: 6px; display: grid; gap: 6px; }
.app-name { font: 700 36px/1.1 var(--head); letter-spacing: -0.02em; }
.app-sub { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.app-cat { color: var(--silver); border-radius: 4px; }
.app-cat:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.app-actions { display: flex; gap: 10px; padding-bottom: 8px; flex-wrap: wrap; }
.facts-wrap { margin-top: 24px; }
.facts { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow-x: auto; scrollbar-width: none; }
.facts::-webkit-scrollbar { display: none; }
.fact { display: grid; gap: 2px; padding: 0 28px; border-left: 1px solid var(--line); min-width: max-content; }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact-value { font: 600 17px/1.3 var(--head); color: var(--text); display: inline-flex; gap: 5px; align-items: center; }
.fact-value .ico { width: 14px; height: 14px; }
.fact-label { font-size: 12px; color: var(--muted); }

.app-main {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 40px; row-gap: 16px;
  grid-template-areas: "content dl" "content rest"; grid-template-rows: auto 1fr; padding-top: 30px; align-items: start;
}
.app-content { grid-area: content; min-width: 0; }
.dl-card { grid-area: dl; }
.app-side-rest { grid-area: rest; display: grid; gap: 16px; align-content: start; }
.app-lede { font-size: 17px; color: var(--text); line-height: 1.5; margin-bottom: 28px; max-width: 62ch; }
.app-section { margin-bottom: 36px; }
.app-h { font: 600 18px/1.3 var(--head); margin: 0 0 14px; }
.prose { color: var(--text-2); font-size: 14.5px; line-height: 1.7; max-width: 70ch; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: var(--slate); }
.prose strong { color: var(--text); font-weight: 600; }
.prose .prose-h { font: 600 15px var(--head); color: var(--text); margin: 22px 0 10px; }
.prose code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }
.prose--clamped { max-height: 21em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 340px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.shot { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 1px solid #2E3A55; scroll-snap-align: start; background: var(--surface); }
.privacy { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.privacy .prose { font-size: 14px; }
.privacy .prose p:last-child { margin-bottom: 0; }
.privacy-ico { width: 22px; height: 22px; color: var(--silver); margin-top: 2px; }

.side-card { padding: 18px; }
.side-title { font: 600 15px var(--head); margin: 0 0 14px; }
.tabs { display: flex; gap: 2px; background: #0F1729; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.tab {
  all: unset; box-sizing: border-box; flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 6px; border-radius: 999px; font: 500 12px var(--body); white-space: nowrap; min-width: 0; color: var(--muted); cursor: pointer; transition: background var(--t), color var(--t);
}
.tab .ico { width: 13px; height: 13px; }
@media (min-width: 821px) { .tab .ico { display: none; } }
.tab:hover { color: #fff; }
.tab--on, .tab--on:hover { background: var(--metal-on); color: var(--charcoal); font-weight: 600; }
.dl-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.dl-or { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.dl-note { font-size: 13.5px; color: var(--text-2); line-height: 1.55; margin-bottom: 14px; }
.dl-list { list-style: none; margin: 0; padding: 0; }
.dl { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.dl:first-child { border-top: 0; }
.dl-what { display: grid; gap: 2px; min-width: 0; }
.dl-label { font-size: 13.5px; color: var(--text); font-weight: 500; }
.dl-sub { font-size: 11.5px; color: var(--muted); }
.dl-hint { display: flex; gap: 10px; margin-top: 12px; padding: 12px; border-radius: 10px; background: #111A2C; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.dl-hint .ico { margin-top: 2px; color: var(--silver); }
.kvs { margin: 0; }
.kv { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; padding: 8px 0; border-top: 1px solid var(--line); }
.kv:first-child { border-top: 0; padding-top: 0; }
.kv:last-child { padding-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); text-align: right; overflow-wrap: anywhere; }
.side-links { padding: 6px 18px; }
.side-link { display: flex; justify-content: space-between; align-items: center; color: var(--silver); font-size: 13.5px; padding: 11px 0; border-top: 1px solid var(--line); }
.side-link:first-child { border-top: 0; }
.side-link .ico { width: 13px; height: 13px; color: var(--dim); transition: transform var(--t) var(--ease); }
.side-link:hover { color: #fff; }
.side-link:hover .ico { transform: translate(2px, -2px); color: var(--silver); }

.stars { display: inline-flex; gap: 2px; color: #3A4660; }
.stars .ico { width: 13px; height: 13px; }
.star--on { color: #D7DCE6; }
.rating-summary { display: flex; gap: 32px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.rating-big { display: grid; justify-items: start; gap: 4px; }
.rating-num { font: 700 44px/1 var(--head); }
.histo { display: grid; gap: 4px; flex: 1; min-width: 200px; max-width: 360px; }
.histo-row { display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: center; font-size: 11.5px; color: var(--muted); }
.histo-bar { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border: 0; border-radius: 999px; background: #1E2940; overflow: hidden; }
.histo-bar::-webkit-progress-bar { background: #1E2940; border-radius: 999px; }
.histo-bar::-webkit-progress-value { background: var(--silver); border-radius: 999px; }
.histo-bar::-moz-progress-bar { background: var(--silver); border-radius: 999px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; font-size: 13.5px; color: var(--text-2); }
.review-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.review-head strong { color: var(--text); }
.review-head .muted { font-size: 12px; }
.review-body { line-height: 1.6; white-space: pre-line; }
.review-reply { margin-top: 12px; padding: 12px 14px; border-left: 2px solid var(--line-3); background: #111A2C; border-radius: 0 10px 10px 0; }
.review-reply p { margin-top: 4px; }
.reviews-empty { padding: 18px; border: 1px dashed var(--line-3); border-radius: var(--radius); text-align: center; }

/* ------------------------------------------------------------------ get SilverSTORE */

.view-gs { padding-top: 32px; }
.gs-hero { display: flex; gap: 24px; align-items: center; margin-bottom: 28px; }
.gs-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 24px 50px -16px #000; border: 1px solid #2E3A55; }
.gs-title { margin: 8px 0 6px; font-size: 36px; }
.gs-lede { color: var(--text-2); font-size: 16px; max-width: 56ch; }
.gs-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.gs-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.gs-card > p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.gs-h { font: 600 19px var(--head); }
.gs-download { align-self: flex-start; }
.gs-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 4px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.gs-fact { padding: 0 22px; border-left: 1px solid var(--line); }
.gs-fact:first-child { padding-left: 0; border-left: 0; }
.gs-fact dt { font-size: 12px; color: var(--muted); }
.gs-fact dd { margin: 2px 0 0; font: 600 15px var(--head); }
.gs-facts--mono dd { font: 500 13px ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; }
.steps { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 42px; min-height: 28px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line-3); font: 600 13px var(--head); color: var(--silver);
}
.steps strong { color: var(--text); }
.qr { align-self: center; width: 216px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 20px 40px -20px #000; }
.qr svg, .qr img { width: 100%; height: auto; }
.mono-row { display: flex; align-items: center; gap: 8px; background: #0F1729; border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 12px; }
.mono-row .mono { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--text-2); font-size: 12.5px; }
.copy-btn { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--silver); cursor: pointer; transition: background var(--t), color var(--t); }
.copy-btn:hover { background: #22304A; color: #fff; }
.hexgrid { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 6px; max-width: 46rem; }
.hexgrid b {
  font: 600 13px ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; text-align: center; padding: 7px 0;
  background: #0F1729; border: 1px solid var(--line); border-radius: 7px; color: var(--silver);
}
.gs-foot { font-size: 12.5px; margin-top: 18px; text-align: center; }

/* ------------------------------------------------------------------ footer, toast */

.footer { border-top: 1px solid #1F2A3D; background: var(--ground-deep); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 36px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-brand { display: flex; gap: 14px; align-items: center; font-size: 13px; }
.footer-name { font: 600 14px var(--head); color: var(--text); }
.footer-links { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: 13.5px; }
.footer-links a { color: var(--silver); border-radius: 4px; }
.footer-links a:hover { color: #fff; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--metal); color: var(--charcoal); font-weight: 600; font-size: 13.5px; padding: 11px 18px; border-radius: 999px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .8); transition: opacity var(--t), transform var(--t) var(--ease); max-width: calc(100vw - 32px); overflow-wrap: anywhere;
}
.toast--on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ signed in */

.account { position: relative; flex: none; }
.account-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px 0 5px; border-radius: 999px; cursor: pointer;
  background: var(--surface-3); border: 1px solid var(--line-3); color: var(--text); font: 500 13.5px var(--body);
  transition: border-color var(--t), background var(--t);
}
.account-btn:hover, .account-btn[aria-expanded="true"] { border-color: #4A5874; background: #1C273B; }
.account-avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--metal); color: var(--charcoal); font: 700 13px var(--head);
}
.account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 190px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-3); border-radius: var(--radius);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9);
}
.account-menu[hidden] { display: none; }
.account-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 9px; border: 0; background: none;
  color: var(--text-2); font: 500 14px var(--body); text-align: left; cursor: pointer;
}
.account-item:hover { background: rgba(192, 198, 212, .08); color: #fff; }
.account-item .ico { width: 15px; height: 15px; color: var(--dim); }

.badge {
  display: inline-flex; align-items: center; align-self: flex-start; height: 20px; padding: 0 9px; border-radius: 999px;
  font: 600 11px/1 var(--body); letter-spacing: .02em; border: 1px solid var(--line-3); color: var(--silver); background: rgba(192, 198, 212, .08);
}
.badge--granted { color: #8FD3C1; border-color: rgba(143, 211, 193, .35); background: rgba(143, 211, 193, .08); }
.badge--plan { color: #9DB8FF; border-color: rgba(157, 184, 255, .35); background: rgba(157, 184, 255, .08); }
.badge--purchased { color: #B6E3A0; border-color: rgba(182, 227, 160, .35); background: rgba(182, 227, 160, .08); }
.app-sub .badge { margin-left: 2px; }
.personal-rows .app-card-meta { font-style: italic; color: var(--muted); }

.lib-list { display: grid; gap: 12px; }
.lib-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; }
.lib-row .app-icon { width: 56px; height: 56px; border-radius: 13px; }
.lib-name { font: 600 16px var(--head); }
.lib-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; }
.lib-tag { margin-top: 6px; font-size: 13px; color: #A3AEC1; }
.lib-dl { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.lib-dl .btn .ico { width: 14px; height: 14px; }

.side-link--btn { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; font-family: var(--body); text-align: left; }
.review-cta { margin: -4px 0 16px; }

.dlg {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 0; margin: auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-3); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
}
.dlg::backdrop { background: rgba(7, 12, 24, .72); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 0; }
.dlg-title { font: 600 18px/1.3 var(--head); }
.dlg-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.dlg-x:hover { background: rgba(192, 198, 212, .1); color: #fff; }
.dlg-x .ico { width: 16px; height: 16px; }
.dlg-form { display: grid; gap: 16px; padding: 18px 20px 20px; }
.field { display: grid; gap: 6px; }
.field-label { font: 600 13px var(--body); color: var(--text-2); }
.field-hint { font-size: 12px; color: var(--dim); }
.input {
  width: 100%; min-height: 42px; padding: 10px 14px; border-radius: 12px; background: var(--surface-3); border: 1px solid #27324A;
  color: var(--text); font: 400 14px var(--body); transition: border-color var(--t), box-shadow var(--t);
}
.input:hover { border-color: var(--line-3); }
.input:focus { outline: none; border-color: #5A6885; box-shadow: 0 0 0 3px rgba(192, 198, 212, .16); }
.input--area { resize: vertical; line-height: 1.5; }
select.input { appearance: auto; }
.check { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--text-2); }
.check input { width: 18px; height: 18px; accent-color: #C0C6D4; }
.form-msg { min-height: 0; font-size: 13px; color: #F2A6B3; }
.form-msg:empty { display: none; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; }
.star-pick { display: flex; gap: 4px; }
.star-pick-btn { background: none; border: 0; padding: 4px; cursor: pointer; color: #3A4660; border-radius: 8px; }
.star-pick-btn .ico { width: 26px; height: 26px; }
.star-pick-on { color: #E8D9A8; }
.star-pick-btn:hover { color: #F2E7BE; }

/* ------------------------------------------------------------------ skeletons + motion */

.skel-block { display: block; border-radius: 8px; background: linear-gradient(90deg, #172138 0%, #1F2A42 40%, #172138 80%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
.skel-icon { width: 64px; height: 64px; border-radius: 15px; }
.skel-line { height: 12px; width: 100%; }
.skel-title { height: 40px; width: 70%; margin: 14px 0 16px; border-radius: 10px; }
.skel-btn { height: 46px; width: 200px; border-radius: 999px; margin-top: 22px; }
.skel-hero-icon { width: 128px; height: 128px; border-radius: 30px; }
.skel-chip { width: 110px; height: 34px; border-radius: 999px; }
.skel-app-icon { width: 128px; height: 128px; border-radius: 30px; border: 1px solid #2E3A55; }
.skel-facts { height: 62px; margin-top: 24px; border-radius: 12px; }
.skel-para { height: 160px; margin-top: 14px; }
.skel-card { height: 260px; border-radius: var(--radius); grid-area: dl; }
.skel-review { height: 84px; margin-bottom: 12px; border-radius: var(--radius); }
.w30 { width: 30%; } .w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; }
.app-card.skel { gap: 14px; }
.app-card.skel:hover { transform: none; background: var(--surface); border-color: var(--line); box-shadow: none; }
.hero--skel .hero-copy { display: grid; }
.chips--skel { margin-bottom: 30px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }

.view--in { animation: view-in 260ms var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .skel-block { animation: none; background: #1A2439; }
  .app-card:hover { transform: none; }
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .topnav a[data-nav-key="get-silverstore"] { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-shot { display: none; }
  .app-main { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 28px; }
}

@media (max-width: 820px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 72px; }
  body { font-size: 15px; }
  .topbar-inner { gap: 12px; padding-top: 10px; padding-bottom: 10px; min-height: 60px; }
  .brand-logo, .brand-apps, .search-key { display: none; }
  .brand-mark { display: block; }
  .search { max-width: none; }
  .search input { height: 40px; font-size: 16px; }
  .topnav { display: none; }

  .hero { margin: 16px 0 20px; padding: 26px 22px 24px; border-radius: 18px; gap: 0; }
  .hero:has(.hero-art) { padding-top: 196px; }
  .hero-art { width: 100%; height: 230px; object-position: 78% 50%; inset: 0 0 auto 0; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .hero:has(.hero-art)::before { background: none; }
  .hero-title { font-size: 30px; margin: 10px 0 10px; }
  .hero-text { font-size: 15px; margin-bottom: 20px; }
  .cta { gap: 10px 16px; }
  .cta .btn { width: 100%; }

  .platbar { gap: 8px; margin-bottom: 14px; }
  .platbar-label, .platbar-note { font-size: 12px; }
  .platbar-label { display: none; }
  .plat-scroll { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); width: calc(100% + var(--gutter) * 2); max-width: none; border-radius: 0; }
  .platbar-note { order: 3; }
  .platbar-note::before { content: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 26px; padding: 0 var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .chips--more { flex-wrap: wrap; margin-left: 0; margin-right: 0; padding: 0; }

  .section { margin-bottom: 30px; }
  .section-title { font-size: 17px; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .grid .app-card { min-height: 0; display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; row-gap: 12px; padding: 14px; }
  .grid .app-card .app-icon { width: 56px; height: 56px; border-radius: 13px; }
  .grid .app-card .app-card-tag { -webkit-line-clamp: 2; }
  .grid .app-card .app-card-foot { grid-column: 1 / -1; }
  .rail { grid-auto-columns: 82%; margin: -2px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter) 10px; scroll-padding: 0 var(--gutter); }
  .promo { flex-wrap: wrap; }
  .promo .btn { width: 100%; }

  .app-banner { height: 150px; }
  .app-head { flex-wrap: wrap; gap: 14px 16px; margin-top: -44px; align-items: flex-end; }
  .app-head-icon { width: 88px; height: 88px; border-radius: 22px; }
  .app-titles { flex-basis: 100%; padding-bottom: 0; gap: 4px; }
  .app-name { font-size: 26px; }
  .app-sub { font-size: 13px; }
  .app-actions { width: 100%; padding: 0; flex-wrap: nowrap; }
  .app-actions .btn--silver { flex: 1; }
  .facts-wrap { margin-top: 18px; }
  .fact { padding: 0 18px; }
  .fact-value { font-size: 15px; }
  .app-main { grid-template-columns: 1fr; grid-template-areas: "dl" "content" "rest"; grid-template-rows: none; padding-top: 20px; row-gap: 24px; }
  .app-lede { font-size: 16px; }
  .prose { font-size: 15px; }

  .view-list, .view-gs { padding-top: 20px; }
  .page-title { font-size: 26px; }
  .page-head--art { padding: 22px; min-height: 160px; }
  .gs-hero { gap: 16px; align-items: flex-start; }
  .gs-icon { width: 72px; height: 72px; border-radius: 18px; }
  .gs-title { font-size: 28px; }
  .gs-lede { font-size: 15px; }
  .gs-grid { grid-template-columns: 1fr; }
  .gs-card { padding: 20px; }
  .gs-download { align-self: stretch; }
  .hexgrid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
  .gs-facts--mono { display: grid; gap: 10px; }
  .gs-facts--mono .gs-fact { padding: 0; border-left: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .account-name { display: none; }
  .account-btn { padding-right: 5px; }
  .lib-row { grid-template-columns: 56px minmax(0, 1fr); padding: 14px; gap: 12px 14px; }
  .lib-dl { grid-column: 1 / -1; justify-content: flex-start; }
  .dlg { margin: auto 16px; width: auto; }
}

@media (max-width: 380px) {
  .fact { padding: 0 14px; }
  .tab span { font-size: 11.5px; }
}
