/* Aurora Play storefront — light theme. White cards on a soft grey canvas;
   a featured-app slider and a compact app list on the home page.
   Aurora brand: primary #2563EB, hover #1D4ED8, soft #EEF4FF.
   Web-only corner radii (cards 16 px, controls 10 px, pills round) are a
   documented exception to the 2 px native-app rule. */
:root {
  --canvas: #f4f6f9;
  --surface: #ffffff;
  --text: #161b26;
  --text-2: #5a6375;
  --text-3: #8b93a3;
  --line: #e3e7ee;
  --line-2: #eef1f5;
  --fill: #f1f4f8;
  --hover: #f7f9fc;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eef4ff;
  --primary-line: #cddcfb;
  --primary-text: #1d4ed8;
  --tint: linear-gradient(135deg, #e7efff 0%, #f3f7ff 55%, #eaf6fb 100%);
  --note: #fff8e6;
  --note-line: #f6e2ac;
  --note-ic: #a35a00;
  --soon: #a35a00;
  --soon-bg: #fff3dc;
  --r-card: 16px;
  --r-ctl: 10px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-hover: 0 10px 28px rgba(16, 24, 40, .09), 0 2px 6px rgba(16, 24, 40, .05);
  --shadow-pop: 0 12px 32px rgba(16, 24, 40, .16), 0 2px 8px rgba(16, 24, 40, .08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--primary-text); text-decoration: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
code { font-family: var(--mono); font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.icon { width: 24px; height: 24px; fill: currentColor; flex: none; vertical-align: middle; }
.dot { margin: 0 6px; color: var(--text-3); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }

/* Header */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
.hdr-row { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand img { display: block; border-radius: 8px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; color: var(--text-2); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.tabs a:hover { background: var(--fill); color: var(--text); }
.tabs a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-text); font-weight: 600; }
.hdr-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search { position: relative; display: flex; align-items: center; width: 320px; height: 40px; border: 1px solid transparent; border-radius: 999px; background: var(--fill); transition: width .2s, background .2s, border-color .2s, box-shadow .2s; }
.search:focus-within { width: 380px; background: var(--surface); border-color: var(--primary-line); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.search-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; }
.search-btn .icon { width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; height: 100%; padding: 0 16px 0 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 14.5px; outline: none; }
.search input::placeholder { color: var(--text-3); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text-2); flex: none; }
.icon-btn:hover { background: var(--fill); color: var(--text); }

main.wrap { padding-top: 28px; padding-bottom: 64px; min-height: 60vh; }

/* Buttons and small labels */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font: 600 14px/1 var(--font); white-space: nowrap; cursor: pointer; transition: background .15s, box-shadow .15s, border-color .15s; }
.btn .icon { width: 18px; height: 18px; }
.btn-install { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .25); }
.btn-install:hover { background: var(--primary-hover); box-shadow: 0 4px 12px rgba(37, 99, 235, .28); }
.btn-size { margin-left: 2px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .35); font-weight: 500; opacity: .92; }
.btn-off, .btn-off:hover { background: var(--fill); color: var(--text-3); box-shadow: none; cursor: default; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--hover); border-color: #cfd6e2; }
.btn-ghost .icon { color: var(--text-2); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; }
.pill { display: inline-block; padding: 0 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); font-size: 12px; font-weight: 600; line-height: 22px; vertical-align: 1px; }
.pill-soon { background: var(--soon-bg); color: var(--soon); }
.rating { display: inline-flex; align-items: center; gap: 2px; }
.star-icon { width: 14px; height: 14px; color: #e3a008; }
.soon { color: var(--soon); font-weight: 600; }
.art-label { position: absolute; right: 10px; top: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(22, 27, 38, .66); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; pointer-events: none; }

/* App artwork: logos are rounded-square artwork on a transparent canvas */
.icon-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 600; font-size: 24px; border-radius: 22%; }

/* Section headings */
.sec { margin-top: 40px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-title { font-size: 22px; }
.sec-sub { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.sec-link { display: inline-flex; align-items: center; gap: 2px; padding: 6px 6px 6px 12px; border-radius: 999px; color: var(--primary-text); font-size: 14px; font-weight: 600; white-space: nowrap; }
.sec-link:hover { background: var(--primary-soft); }
.sec-link .icon { width: 18px; height: 18px; }

/* Carousels (screenshots) */
.carousel { position: relative; }
.track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
.car-btn { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: var(--shadow-pop); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.carousel:hover .car-btn, .car-btn:focus-visible { opacity: 1; }
.car-btn[hidden] { display: none; }
.car-prev { left: -8px; }
.car-next { right: -8px; }

/* Home: page head and one full-width row per app */
.home-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; margin: 4px 0 20px; }
.home-head h1 { font-size: 26px; letter-spacing: -.02em; }
.home-head p { margin: 0; color: var(--text-2); font-size: 14px; }
.slider { position: relative; }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-card); }
.slider-track::-webkit-scrollbar { display: none; }
.slide { display: flex; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.slide > .show { flex: 1; min-width: 0; }
.slider-dots { display: flex; justify-content: center; gap: 2px; margin-top: 10px; }
.slider-dots a { position: relative; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; }
.slider-dots a::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #c3cad6; transition: width .25s, background .25s; }
.slider-dots a:hover::before { background: #98a2b3; }
.slider-dots a[aria-current="true"] { width: 40px; }
.slider-dots a[aria-current="true"]::before { width: 28px; background: var(--primary); }
.slider.is-auto .slider-dots a[aria-current="true"]::before { background: var(--primary-line); }
.slider-progress { position: absolute; left: 6px; top: 8px; width: 0; height: 8px; border-radius: 999px; background: var(--primary); }
.slider.is-auto .slider-dots a[aria-current="true"] .slider-progress { animation: slide-progress var(--slide-time, 7s) linear forwards; }
.slider:hover .slider-progress, .slider:has(:focus-visible) .slider-progress { animation-play-state: paused !important; }
@keyframes slide-progress { from { width: 0; } to { width: 28px; } }
.show { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: hidden; }
.show-info { display: flex; flex-direction: column; padding: 32px 36px; }
.eyebrow { align-self: flex-start; margin: 0 0 16px; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.eyebrow-soon { background: var(--soon-bg); color: var(--soon); }
.show-id { display: flex; align-items: center; gap: 16px; }
.show-icon { width: 72px; height: 72px; filter: drop-shadow(0 2px 6px rgba(16, 24, 40, .16)); }
.show-id h2 { font-size: 28px; letter-spacing: -.02em; }
.show-id h2 a { color: var(--text); }
.show-id h2 a:hover { color: var(--primary-text); }
.show-id p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.show-sum { margin: 16px 0 0; color: #3a4253; font-size: 16.5px; line-height: 1.5; }
.show-facts { display: flex; flex-wrap: wrap; gap: 12px 0; list-style: none; margin: 20px 0 0; padding: 0; }
.show-facts li { display: flex; flex-direction: column; padding: 0 18px; border-left: 1px solid var(--line); }
.show-facts li:first-child { padding-left: 0; border-left: 0; }
.show-facts strong { display: inline-flex; align-items: center; gap: 3px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.show-facts span { color: var(--text-2); font-size: 12.5px; }
.show-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.show-new { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.show-new-head { margin: 0 0 6px; color: var(--text); font-size: 14px; font-weight: 600; }
.points { margin: 0; padding: 0; list-style: none; }
.points li { position: relative; padding-left: 16px; margin: 4px 0; color: #3a4253; font-size: 14px; line-height: 1.45; }
.points li::before { content: ""; position: absolute; left: 3px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); opacity: .75; }
.show-media { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 28px; background: var(--tint); border-left: 1px solid var(--line-2); }
.show-main { position: relative; display: block; align-self: center; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 14px 34px rgba(30, 58, 138, .14), 0 2px 8px rgba(30, 58, 138, .08); }
.show-main img { display: block; max-width: 100%; max-height: 460px; width: auto; height: auto; transition: transform .3s; }
.show-main:hover img { transform: scale(1.01); }
.show-caption { margin: 0; color: var(--text-2); font-size: 13px; text-align: center; }
.show-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.show-thumbs a { display: block; border-radius: 8px; overflow: hidden; border: 2px solid var(--surface); background: var(--surface); box-shadow: 0 2px 8px rgba(30, 58, 138, .12); }
.show-thumbs a:hover { border-color: var(--primary-line); }
.show-thumbs img { display: block; height: 72px; width: auto; max-width: none; }
.show-blank { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 300px; text-align: center; }
.show-blank-icon { width: 128px; height: 128px; filter: drop-shadow(0 10px 22px rgba(30, 58, 138, .22)); }
.show-blank p { max-width: 340px; margin: 0; color: var(--text-2); font-size: 14px; }

/* Home: equal cards below the apps */
.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.panel { padding: 24px; }
.panel .sec-head { margin-bottom: 8px; align-items: center; }
.panel .sec-title { font-size: 18px; }
.ranked { list-style: none; margin: 0; padding: 0; }
.ranked a { display: flex; align-items: center; gap: 14px; padding: 10px 8px; margin: 0 -8px; border-radius: 12px; color: var(--text); }
.ranked a:hover { background: var(--hover); }
.rank { width: 18px; flex: none; text-align: center; color: var(--text-3); font-size: 15px; font-weight: 600; }
.ranked-icon { width: 48px; height: 48px; }
.ranked-text { display: flex; flex-direction: column; min-width: 0; }
.ranked-text strong { font-weight: 600; font-size: 14.5px; }
.ranked-text > span { display: flex; flex-wrap: wrap; align-items: center; color: var(--text-2); font-size: 13px; }
.cat-rows { list-style: none; margin: 0; padding: 0; }
.cat-rows a { display: flex; align-items: center; gap: 14px; padding: 10px 8px; margin: 0 -8px; border-radius: 12px; color: var(--text); }
.cat-rows a:hover { background: var(--hover); }
.cat-stack { display: flex; min-width: 48px; flex: none; }
.cat-mini { width: 48px; height: 48px; border: 2px solid var(--surface); background: var(--surface); }
.cat-mini + .cat-mini { margin-left: -16px; }
.cat-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cat-text strong { font-weight: 600; font-size: 14.5px; }
.cat-text span { color: var(--text-2); font-size: 13px; }
.cat-chev { width: 20px; height: 20px; color: var(--text-3); }
.steps { counter-reset: step; list-style: none; margin: 4px 0 0; padding: 0; }
.steps li { position: relative; padding: 9px 0 9px 44px; color: #3a4253; font-size: 14px; line-height: 1.45; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 8px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); font-size: 13px; font-weight: 700; }
.steps strong { color: var(--text); font-weight: 600; }

/* Page heads, lists, categories */
.search-page { display: none; width: 100%; margin-top: 4px; }
.search-page:focus-within { width: 100%; }
.page-head { margin: 8px 0 24px; }
.page-head h1 { font-size: 30px; letter-spacing: -.02em; margin-bottom: 6px; }
.page-head p { margin: 0; }
.with-icon { display: flex; align-items: center; gap: 20px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: -8px 0 16px; color: var(--text-2); font-size: 13.5px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--primary-text); }
.crumbs .icon { width: 16px; height: 16px; color: var(--text-3); }
.crumbs [aria-current] { color: var(--text); font-weight: 500; }
.rows { list-style: none; margin: 0; padding: 0 24px; }
.row { position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line-2); }
.row:first-child { border-top: 0; }
.row .rank { font-size: 18px; }
.list-icon { width: 72px; height: 72px; }
.row-text { flex: 1; min-width: 0; }
.row-text h2 { font-size: 17px; }
.row-text h2 a { color: var(--text); }
.row:hover h2 a { color: var(--primary-text); }
.row-sub { margin: 1px 0 4px; color: var(--text-2); font-size: 13px; }
.row-sum { margin: 0 0 4px; color: #3a4253; font-size: 14px; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; margin: 0; color: var(--text-2); font-size: 13px; }
.row-action { position: relative; z-index: 2; flex: none; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 56px 24px; color: var(--text-2); }
.empty p { margin: 0; }
.empty-icon { width: 48px; height: 48px; color: #c5ccd8; }
.empty-page { padding: 80px 24px; }
.empty-page h1 { font-size: 26px; color: var(--text); }
.empty-page .btn { margin-top: 12px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.cat { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 24px; color: var(--text); transition: box-shadow .2s, border-color .2s, transform .2s; }
.cat:hover { box-shadow: var(--shadow-hover); border-color: #d6dce6; transform: translateY(-2px); }
.cat-icons { display: flex; gap: 8px; margin-bottom: 14px; }
.cat-icon { width: 56px; height: 56px; }
.cat-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.cat-apps { margin-top: 8px; color: var(--primary-text); font-size: 13px; font-weight: 600; }

/* App detail */
.app-hero { padding: 32px 36px 0; }
.app-hero-main { display: flex; gap: 32px; align-items: flex-start; }
.hero-icon { width: 128px; height: 128px; filter: drop-shadow(0 6px 14px rgba(16, 24, 40, .16)); }
.app-hero-text { flex: 1; min-width: 0; }
.app-hero h1 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.025em; line-height: 1.1; }
.hero-dev { display: flex; flex-wrap: wrap; align-items: center; margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.hero-dev a { font-weight: 600; }
.hero-sum { max-width: 720px; margin: 14px 0 0; color: #3a4253; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-meta { margin: 12px 0 0; color: var(--text-3); font-size: 13px; }
.app-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); list-style: none; margin: 28px -36px 0; padding: 0; border-top: 1px solid var(--line-2); }
.app-stats li { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px 18px; border-left: 1px solid var(--line-2); }
.app-stats li:first-child { border-left: 0; padding-left: 36px; }
.app-stats strong { display: inline-flex; align-items: center; gap: 3px; font-size: 16px; font-weight: 600; }
.app-stats span { color: var(--text-2); font-size: 12.5px; }

.gallery { margin-top: 20px; padding: 20px; }
.gallery .track { gap: 16px; }
.shot { position: relative; display: flex; flex-direction: column; flex: none; margin: 0; }
.shot a { display: block; border-radius: 10px; overflow: hidden; background: var(--fill); border: 1px solid var(--line-2); }
.shot img { display: block; height: 320px; width: auto; max-width: none; transition: filter .15s; }
.shot a:hover img { filter: brightness(.96); }
.shot figcaption { width: 0; min-width: 100%; margin-top: 10px; color: var(--text-2); font-size: 13px; line-height: 1.4; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 20px; align-items: start; }
.col-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.block { padding: 28px 32px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.block-title { font-size: 20px; margin-bottom: 12px; }
.block-head .block-title { margin-bottom: 4px; }
.block > p { color: #3a4253; line-height: 1.65; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: 13px; font-weight: 600; background: var(--surface); }
a.chip { color: var(--primary-text); border-color: var(--primary-line); background: var(--primary-soft); }
a.chip:hover { border-color: var(--primary); }
.chip-static { cursor: default; }
.compat { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); color: #3a4253; font-size: 14px; }
.compat span { display: block; color: var(--text-2); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.notes { color: #3a4253; font-size: 15px; }
.notes h3, .notes h4 { font-size: 15px; margin: 18px 0 6px; color: var(--text); }
.notes ul, .notes ol { padding-left: 22px; margin: 8px 0 12px; }
.notes li { margin: 6px 0; }
.notes code { background: var(--fill); padding: 1px 5px; border-radius: 4px; }
details.more { margin-top: 8px; }
details.more > summary { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; margin-left: -14px; border-radius: 999px; color: var(--primary-text); font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; }
details.more > summary:hover { background: var(--primary-soft); }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { margin-bottom: 8px; }

.safety { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.safety-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--hover); border: 1px solid var(--line-2); }
.safety-row .icon { color: var(--primary); width: 22px; height: 22px; }
.safety-row div { display: flex; flex-direction: column; }
.safety-row strong { font-weight: 600; font-size: 14px; }
.safety-row span { color: var(--text-2); font-size: 13px; }
.facts { display: grid; gap: 12px; margin: 4px 0 0; padding: 18px; border-radius: 12px; background: var(--hover); }
.facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.facts dt { color: var(--text-2); font-size: 13px; }
.facts dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.hash { word-break: break-all; }

.ratings { display: flex; align-items: center; gap: 40px; margin-bottom: 20px; }
.rating-big { display: flex; flex-direction: column; align-items: center; }
.rating-big strong { font-size: 56px; font-weight: 500; line-height: 1; }
.stars { display: inline-flex; gap: 1px; margin: 8px 0 2px; }
.star .icon { width: 16px; height: 16px; }
.star.on { color: #e3a008; }
.star.off { color: var(--line); }
.stars-small .icon { width: 12px; height: 12px; }
.bars { list-style: none; margin: 0; padding: 0; flex: 1; max-width: 460px; }
.bars li { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-2); margin: 4px 0; }
.bar { flex: 1; height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--primary); border-radius: 5px; }
.review { padding: 18px 0; border-top: 1px solid var(--line-2); }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; font-size: 14px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #6d5bd0; color: #fff; font-weight: 600; }
.review-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.empty-reviews { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 12px; background: var(--hover); border: 1px dashed var(--line); }
.empty-reviews strong { font-weight: 600; font-size: 15px; }
.empty-reviews p { margin: 2px 0 0; font-size: 14px; }
.empty-star { width: 32px; height: 32px; color: #c5ccd8; }
.review-list { margin-top: 8px; }
.review-head > span:last-child { display: flex; flex-direction: column; }
.review-head strong { font-weight: 600; }
.review-device { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 12.5px; }
.review-device .icon { width: 14px; height: 14px; }
.review-body { margin: 0; color: #3a4253; white-space: pre-line; overflow-wrap: anywhere; }
.notice { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.notice .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.notice-ok { background: #ecfdf3; border: 1px solid #b7ebcd; color: #14532d; }
.notice-error { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; }

/* Anonymous review form */
.review-form { margin-top: 20px; padding: 22px 24px; border-radius: 14px; background: var(--hover); border: 1px solid var(--line-2); }
.review-form h3 { font-size: 17px; margin-bottom: 4px; }
.review-form > p.muted { margin-bottom: 16px; }
.star-input { border: 0; margin: 0 0 14px; padding: 0; }
.star-input legend { padding: 0; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; }
.star-row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-row label { display: inline-flex; padding: 2px; border-radius: 8px; color: #c5ccd8; cursor: pointer; transition: color .12s, transform .12s; }
.star-row label .icon { width: 34px; height: 34px; }
.star-row label:hover, .star-row label:hover ~ label, .star-row input:checked ~ label { color: #e3a008; }
.star-row label:hover { transform: scale(1.08); }
.star-row input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 1px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field label .muted { font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.versions { list-style: none; margin: 8px 0 0; padding: 0; }
.versions li { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.versions li:first-child { border-top: 0; }
.v-name { font-weight: 600; min-width: 130px; }
.v-meta { flex: 1; color: var(--text-2); font-size: 13.5px; }
.versions .icon-btn { color: var(--primary); }
.versions .icon-btn:hover { background: var(--primary-soft); }

.col-side { display: flex; flex-direction: column; gap: 20px; }
.side { padding: 22px 24px; }
.side h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 10px; }
.side p { margin-bottom: 6px; }
.side-note { background: var(--note); border-color: var(--note-line); }
.side-note h2 { font-size: 15px; margin-bottom: 6px; }
.side-note h2 .icon { width: 20px; height: 20px; color: var(--note-ic); }
.side-note p { margin: 0; color: #4a3a12; font-size: 13.5px; }
.support { list-style: none; margin: 0; padding: 0; }
.support a { display: flex; gap: 14px; align-items: center; padding: 10px 8px; margin: 0 -8px; border-radius: 12px; color: var(--text); }
.support a:hover { background: var(--hover); }
.support a .icon { color: var(--primary); width: 20px; height: 20px; }
.support span { display: flex; flex-direction: column; }
.support strong { font-weight: 600; font-size: 14px; }
.similar { list-style: none; margin: 0; padding: 0; }
.similar a { display: flex; gap: 14px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 12px; color: var(--text); }
.similar a:hover { background: var(--hover); }
.similar-icon { width: 56px; height: 56px; }
.similar span { display: flex; flex-direction: column; line-height: 1.4; }
.similar span span { display: inline; }
.similar strong { font-weight: 600; font-size: 14.5px; }

.history { display: flex; flex-direction: column; gap: 14px; list-style: none; margin: 0; padding: 0; max-width: 920px; }
.history-item { padding: 20px 24px; }
.history-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.history-head h2 { font-size: 18px; }
.history-head .btn { margin-left: auto; }
.hash-line { margin: 10px 0 0; }

/* Help */
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.card-block { padding: 26px 30px; }
.card-block h2 { display: flex; align-items: center; gap: 12px; font-size: 18px; margin-bottom: 12px; }
.card-block h2 .icon { color: var(--primary); }
.card-block ol { padding-left: 22px; margin: 0; }
.card-block li { margin: 8px 0; font-size: 15px; color: #3a4253; }
.card-block p { font-size: 15px; color: #3a4253; }
.faq { margin: 0; }
.faq dt { font-weight: 600; margin-top: 14px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 4px 0 0; color: var(--text-2); }
.commands { list-style: none; padding: 0 !important; margin: 0; }
.commands li { display: flex; gap: 12px; align-items: baseline; margin: 8px 0; }
.commands span { width: 72px; flex: none; color: var(--text-2); font-size: 13px; }
.commands code { padding: 4px 10px; border-radius: 6px; background: var(--fill); overflow-wrap: anywhere; }

/* Privacy and terms */
.legal-date { margin-top: 4px !important; }
.legal { max-width: 860px; padding: 32px 36px; }
.legal section + section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.legal h2 { font-size: 18px; margin-bottom: 8px; }
.legal p { color: #3a4253; font-size: 15px; line-height: 1.65; }
.legal p:last-child { margin-bottom: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }

/* Footer */
.ftr { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 24px; }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.ftr-social a { display: inline-flex; align-items: center; gap: 8px; }
.ftr-social .icon { width: 18px; height: 18px; }
.ftr-brand p { margin: 12px 0 0; max-width: 320px; color: var(--text-2); font-size: 14px; }
.ftr-brand .brand { font-size: 17px; }
.ftr h2 { font-size: 14px; margin-bottom: 12px; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin: 8px 0; }
.ftr ul a { color: var(--text-2); font-size: 14px; }
.ftr ul a:hover { color: var(--text); }
.ftr-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--text-3); font-size: 12.5px; }
.ftr-base a { color: var(--text-2); }

/* Snackbar and image viewer (store.js) */
.toast { position: fixed; left: 24px; bottom: 24px; z-index: 40; width: min(480px, calc(100% - 32px)); padding: 14px 48px 14px 16px; border-radius: 12px; background: #1f2533; color: #e6e9ef; box-shadow: var(--shadow-pop); font-size: 14px; animation: rise .2s ease-out; }
.toast strong { display: block; color: #fff; font-weight: 600; margin-bottom: 4px; }
.toast p { margin: 0; }
.toast a { color: #9cc0ff; font-weight: 600; }
.toast button { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: #e6e9ef; cursor: pointer; }
.toast button .icon { width: 20px; height: 20px; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
dialog.viewer { border: 0; padding: 0; max-width: min(1200px, 96vw); background: transparent; overflow: visible; }
dialog.viewer::backdrop { background: rgba(16, 20, 28, .86); }
dialog.viewer img { display: block; max-width: 96vw; max-height: 84vh; width: auto; height: auto; border-radius: 10px; }
dialog.viewer p { color: #e6e9ef; font-size: 14px; margin: 12px 2px 0; text-align: center; }
dialog.viewer button { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }

@media (max-width: 1100px) {
  .show-info { padding: 28px; }
  .show-media { padding: 20px; }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .col-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .search { width: 240px; }
  .search:focus-within { width: 280px; }
}
@media (max-width: 900px) {
  /* Stacked layouts: the slider shows text only, so a slide stays short. */
  .show { display: block; }
  .show-media { display: none; }
}
@media (max-width: 760px) {
  .home-head h1 { font-size: 21px; }
  .show-info { padding: 20px 20px 22px; }
  .show-media { padding: 14px; }
  .show-id h2 { font-size: 23px; }
  .show-icon { width: 56px; height: 56px; }
  .show-sum { font-size: 15.5px; }
  .show-facts li { padding: 0 12px; }
  .show-actions .btn { flex: 1; }
  .show-thumbs img { height: 56px; }
  .show-blank { min-height: 220px; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .fact-date { display: none !important; }
  .show-new .points li:nth-child(n + 3) { display: none; }
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .hdr-row { flex-wrap: wrap; height: auto; gap: 0 12px; padding-top: 8px; }
  .brand { height: 44px; font-size: 18px; }
  .hdr-actions { gap: 4px; }
  .search { width: 40px; background: none; }
  .search input { width: 0; padding: 0; }
  .search:focus-within { position: absolute; left: 16px; right: 16px; top: 10px; width: auto; background: var(--surface); z-index: 3; }
  .search:focus-within input { width: auto; padding-right: 16px; }
  .tabs { order: 3; flex-basis: 100%; height: 48px; align-items: center; margin: 0 -16px; padding: 0 12px; }
  .search-page, .search-page:focus-within { display: flex; position: static; width: 100%; background: var(--surface); border-color: var(--line); box-shadow: none; }
  .search-page input, .search-page:focus-within input { width: auto; padding-right: 16px; }
  main.wrap { padding-top: 16px; }
  .sec { margin-top: 28px; }
  .sec-title { font-size: 19px; }
  .panel { padding: 18px; }
  .car-btn { display: none; }
  .crumbs { margin-top: 0; }
  .app-hero { padding: 22px 20px 0; }
  .app-hero-main { flex-direction: column; gap: 16px; }
  .hero-icon { width: 88px; height: 88px; }
  .hero-sum { font-size: 15.5px; }
  .hero-actions .btn { flex: 1; }
  .app-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px -20px 0; }
  .app-stats li { padding: 12px 14px; border-top: 1px solid var(--line-2); }
  .app-stats li:first-child { padding-left: 14px; }
  .app-stats li:nth-child(3n + 1) { border-left: 0; }
  .app-stats li:nth-child(-n + 3) { border-top: 0; }
  .app-stats strong { font-size: 14.5px; }
  .gallery { padding: 14px; }
  .shot img { height: 210px; }
  .block { padding: 22px 20px; }
  .side { padding: 20px; }
  .rows { padding: 0 16px; }
  .row { flex-wrap: wrap; gap: 12px 14px; padding: 16px 0; }
  .list-icon { width: 56px; height: 56px; }
  .row-action { width: 100%; padding-left: 70px; }
  .row .rank ~ .row-action { padding-left: 102px; }
  .page-head h1 { font-size: 24px; }
  .ratings { flex-direction: column; align-items: stretch; gap: 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .review-form { padding: 18px 16px; }
  .review-form .btn { width: 100%; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .history-item { padding: 16px; }
  .history-head .btn { margin-left: 0; }
  .card-block { padding: 20px; }
  .legal { padding: 22px 20px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ftr-brand { grid-column: 1 / -1; }
  .toast { left: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Self-hosted trailer: deliberate playback, complete uncropped frame. */
.app-trailer{margin-top:24px;overflow:hidden}
.app-trailer video{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#ecf1f8;border-radius:inherit}

/* CMS-managed device families, shared by app listings. */
.device-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;line-height:1.5}.device-table th,.device-table td{text-align:left;vertical-align:top;padding:12px;border-bottom:1px solid var(--line,#dbe3ec);overflow-wrap:anywhere}.device-table th:first-child{width:39%}.device-table thead th{font-weight:700;background:var(--surface,#f6f8fb)}@media(max-width:600px){.device-table{font-size:12px}.device-table th,.device-table td{padding:9px 7px}}
