/* Shared chrome for the generated inner pages: policies, support, blog. */
:root {
  --bg: #F2F2F4; --panel: #E9E9ED; --card: #FFFFFF; --ink: #111113; --ink-2: #5C5C63; --ink-3: #8E8E95;
  --line: rgba(0,0,0,.08); --hover: rgba(0,0,0,.05); --accent: #FF4B3E; --accent-ink: #FFFFFF; --bar: rgba(242,242,244,.84);
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 30px rgba(0,0,0,.10);
  --lift: 0 2px 4px rgba(0,0,0,.05), 0 14px 34px rgba(0,0,0,.10);
  --spring: cubic-bezier(.2,.9,.3,1.25);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0E10; --panel: #232327; --card: #1C1C1F; --ink: #F4F4F6; --ink-2: #A6A6AD; --ink-3: #75757C;
    --line: rgba(255,255,255,.09); --hover: rgba(255,255,255,.06); --bar: rgba(14,14,16,.82);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.5);
    --lift: 0 2px 4px rgba(0,0,0,.4), 0 14px 34px rgba(0,0,0,.55);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
html[lang="ru"] [data-l="en"], html[lang="en"] [data-l="ru"] { display: none !important; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; z-index: 5; padding-top: env(safe-area-inset-top); background: var(--bar); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-bottom: .5px solid var(--line); }
.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 60px; gap: 8px; }
.back {
  justify-self: start; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px 0 8px; border-radius: 999px;
  background: var(--panel); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: background .15s, color .15s, transform .2s var(--spring);
}
.back svg { width: 18px; height: 18px; transition: transform .25s var(--spring); }
.back:hover { background: var(--ink); color: var(--card); }
.back:hover svg { transform: translateX(-3px); }
.back:active { transform: scale(.95); }
.home { display: flex; align-items: center; min-height: 44px; color: var(--ink); }
.home svg { height: 21px; width: auto; display: block; }
/* language switch: pixel labels, the active one is an ink tile with a red pixel */
.lang { display: flex; gap: 2px; background: var(--panel); border-radius: 12px; padding: 3px; }
.lang button { position: relative; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; min-width: 42px; height: 34px; padding: 0; border-radius: 9px; color: var(--ink-2); transition: color .15s, background .2s, transform .2s var(--spring); }
.lang button svg { height: 10px; width: auto; display: block; }
.lang button:hover { color: var(--ink); background: var(--hover); }
.lang button:active { transform: scale(.92); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.lang button::after { content: ""; position: absolute; top: 5px; right: 5px; width: 4px; height: 4px; background: var(--accent); transform: scale(0); transition: transform .25s var(--spring); }
.lang button[aria-pressed="true"]::after { transform: none; }
@media (max-width: 479px) {
  .home svg { height: 15px; }
  .back { padding: 0 10px 0 6px; font-size: 14px; }
  .lang button { min-width: 38px; }
}

/* policy / support pages */
.head { display: flex; align-items: center; gap: 14px; margin: 24px 0 14px; }
.head img { width: 52px; height: 52px; border-radius: 22.5%; box-shadow: 0 0 0 .5px var(--line); }
.head b { display: block; font-size: 20px; letter-spacing: -.01em; }
.head > div { min-width: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.doc { background: var(--card); border-radius: 28px; padding: 28px 24px; margin-top: 8px; }
.doc h1 { font-family: var(--font-display); font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 6px; }
.doc h2 { font-size: 18px; letter-spacing: -.01em; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin: 0 0 12px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }
.doc a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.doc img { max-width: 100%; border-radius: 16px; }
.date, .updated { font-size: 14px; color: var(--ink-3); }
.lead { font-size: 17px; color: var(--ink) !important; }
.contact { background: var(--bg); border-radius: 18px; padding: 16px 18px; margin: 16px 0; }
.contact p { margin: 0 0 6px; }
.contact p:last-child { margin: 0; }

/* blog */
.page-title { font-family: var(--font-display); font-size: 34px; letter-spacing: -.02em; line-height: 1.1; margin: 28px 0 4px; display: flex; align-items: center; gap: 10px; }
.page-title svg { height: calc(var(--r) * 3px); width: auto; flex: none; shape-rendering: crispEdges; }
.page-sub { margin: 0; color: var(--ink-2); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 14px; }
.chip, .tabs a {
  --n: polygon(0 4px, 2px 4px, 2px 2px, 4px 2px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 2px) calc(100% - 4px), calc(100% - 2px) calc(100% - 2px), calc(100% - 4px) calc(100% - 2px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 4px), 0 calc(100% - 4px));
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 11px; border: 0; border-radius: 0; clip-path: var(--n);
  background: var(--panel); color: var(--ink-2); font: 600 14px/1 var(--font); cursor: pointer; transition: background .15s, color .15s, transform .18s steps(3);
}
.chip img, .tabs a img, .chip svg, .tabs a svg { width: 20px; height: 20px; flex: none; display: block; }
.chip img, .tabs a img { border-radius: 22.5%; box-shadow: 0 0 0 .5px var(--line); }
.chip img.pixel, .tabs a img.pixel { border-radius: 0; box-shadow: none; image-rendering: pixelated; }
.chip svg, .tabs a svg { shape-rendering: crispEdges; }
.chip::after, .tabs a::after { content: ""; position: absolute; right: 5px; top: 5px; width: 4px; height: 4px; background: var(--accent); transform: scale(0); transition: transform .18s steps(2); }
.chip:hover, .tabs a:hover { color: var(--ink); background: var(--line); transform: translateY(-2px); }
.chip:hover img, .tabs a:hover img, .chip:hover svg, .tabs a:hover svg { animation: chip-hop .5s steps(3); }
40%, 40% { transform: translateY(-2px) rotate(-6deg); }
.chip:active, .tabs a:active { transform: translateY(1px); }
.chip[aria-pressed="true"], .tabs a[aria-current="page"] { background: var(--ink); color: var(--card); }
.chip[aria-pressed="true"]::after, .tabs a[aria-current="page"]::after { transform: none; }
.chip:focus-visible, .tabs a:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
@keyframes chip-hop { 40% { transform: translateY(-2px) rotate(-6deg); } }
.tabs a { padding: 0 16px; text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.post-card {
  display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 22px; background: var(--card);
  color: inherit; text-decoration: none; transition: transform .3s var(--spring), box-shadow .3s;
  animation: card-in .45s var(--spring) both; animation-delay: calc(var(--i, 0) * 40ms);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.post-card:active { transform: scale(.98); }
.post-card[hidden] { display: none; }
@keyframes card-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.post-meta img { width: 26px; height: 26px; border-radius: 22.5%; box-shadow: 0 0 0 .5px var(--line); transition: transform .3s var(--spring); }
.post-meta img.pixel { image-rendering: pixelated; }
.post-meta b { color: var(--ink-2); font-weight: 600; }
.post-meta a { color: inherit; text-decoration: none; }
.post-card:hover .post-meta img { transform: rotate(-8deg) scale(1.1); }
.post-title { font-family: var(--font-display); font-size: 18px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.post-excerpt { font-size: 14px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.post-read { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.post-read svg { width: 14px; height: 14px; transition: transform .25s var(--spring); }
.post-card:hover .post-read svg { transform: translateX(4px); }

.post-page .post-meta { margin: 28px 0 0; }
.post-page .post-meta img { width: 36px; height: 36px; }
.post-page h1 { font-family: var(--font-display); font-size: clamp(28px, 6vw, 38px); letter-spacing: -.02em; line-height: 1.12; margin: 12px 0 16px; }
.post-page .doc p { font-size: 17px; }
.post-page .doc ul { list-style: none; padding: 0 0 0 20px; display: grid; gap: 8px; margin: 0 0 14px; }
.post-page .doc li { position: relative; font-size: 17px; line-height: 1.45; margin: 0; }
.post-page .doc li::before { content: ""; position: absolute; left: -18px; top: .55em; width: 6px; height: 6px; background: var(--accent); }
.react { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 12px 12px 20px; border-radius: 20px; background: var(--card); }
.react-q { flex: 1; font-weight: 600; }
.rbtn { display: flex; align-items: center; gap: 8px; height: 44px; min-width: 52px; padding: 0 14px; justify-content: center; border: 0; border-radius: 14px; background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; font-weight: 700; transition: background .15s, color .15s, transform .2s var(--spring); }
.rbtn svg { width: 20px; height: 20px; transition: transform .3s var(--spring); }
.rbtn:hover svg { transform: translateY(-2px) rotate(-6deg); }
.rbtn[data-vote="-1"]:hover svg { transform: translateY(2px) rotate(-6deg); }
.rbtn:active { transform: scale(.93); }
.rbtn[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.rbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.post-nav a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 20px; background: var(--card); color: inherit; text-decoration: none; transition: transform .3s var(--spring), box-shadow .3s; }
.post-nav a:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.post-nav small { font-size: 13px; color: var(--ink-3); }
.post-nav span { font-weight: 600; line-height: 1.3; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 479px) { .post-nav { grid-template-columns: minmax(0, 1fr); } .post-nav .next { grid-column: 1; } }

footer { padding: 28px 0 max(28px, env(safe-area-inset-bottom)); font-size: 14px; color: var(--ink-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---- app pages ---- */
.rating { color: var(--ink); order: -1; flex-basis: 100%; display: flex; align-items: center; gap: 10px; padding: 4px 10px; margin: 0 0 0 -10px; border-radius: 12px; text-decoration: none; transition: background .15s, transform .2s var(--spring); }
.rating:hover { background: var(--hover); }
.rating:active { transform: scale(.95); }
.rating .r-top { display: flex; align-items: center; gap: 5px; font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1; }
.rating svg { width: 16px; height: 16px; color: var(--accent); transition: transform .5s var(--spring); }
.rating:hover svg { transform: rotate(144deg) scale(1.15); }
.rating .r-count { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.ico { position: relative; display: block; }
.tag { position: absolute; left: -9px; bottom: -7px; transform: rotate(-9deg); transform-origin: left bottom; height: 17px; padding: 0 6px 0 4px; display: flex; align-items: center; gap: 2px; border-radius: 5px; box-shadow: 0 0 0 2px var(--card), 0 2px 6px rgba(0,0,0,.2); font-size: 9.5px; font-weight: 700; line-height: 1; letter-spacing: .01em; white-space: nowrap; pointer-events: none; transition: transform .3s var(--spring); }
.app-head:hover .tag { transform: rotate(-4deg) scale(1.06); }
.tag.new { background: var(--accent); color: var(--accent-ink); }
.tag.dev { background: #FFB800; color: #2B2000; }
.tag i { font-style: normal; display: block; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.2) rotate(-8deg); } }

.meta { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.platforms li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 8px; border-radius: 10px; background: var(--panel); font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: default; transition: background .15s, color .15s; }
.platforms li:hover { background: var(--ink); color: var(--card); }
.platforms svg { width: 16px; height: 16px; color: currentColor; transition: transform .3s var(--spring); }
.platforms li:hover svg { transform: translateY(-2px) rotate(-8deg); }
.app-lead { margin: 16px 0 0; font-size: 17px; color: var(--ink); }

.feats { margin-top: 16px; }
.app-more-in > .actions { margin-top: 22px; padding-bottom: 14px; }
@media (max-width: 479px) { .app-more-in { margin: 0 -20px; padding: 0 20px; } }
.feats { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feats li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 15px; line-height: 1.4; transition: color .15s; }
.feats li:hover { color: var(--ink); }
.feats li::before {
  content: ""; position: absolute; left: 1px; top: .32em; width: 14px; height: 14px; background: var(--ink); transition: transform .3s var(--spring);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7'%3E%3Cpath d='M0 3h1v1H0zM1 4h1v1H1zM2 5h1v1H2zM3 4h1v1H3zM4 3h1v1H4zM5 2h1v1H5zM6 1h1v1H6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7'%3E%3Cpath d='M0 3h1v1H0zM1 4h1v1H1zM2 5h1v1H2zM3 4h1v1H3zM4 3h1v1H4zM5 2h1v1H5zM6 1h1v1H6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.feats li:hover::before { transform: scale(1.25) rotate(-8deg); }

/* horizontal carousels (screenshots, reviews) */
.carousel { position: relative; margin: 22px -24px 0; }
.scroller { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 24px; padding: 4px 24px 8px; scrollbar-width: none; cursor: grab; }
.scroller::-webkit-scrollbar { display: none; }
.scroller.dragging { scroll-snap-type: none; cursor: grabbing; }
.scroller.dragging * { pointer-events: none; }
.car-btn {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow), 0 0 0 .5px var(--line); cursor: pointer;
  display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .25s var(--spring), background .15s;
}
.car-btn svg { width: 18px; height: 18px; }
.car-btn.prev { left: 10px; }
.car-btn.next { right: 10px; }
.carousel:hover .car-btn:not([disabled]), .car-btn:focus-visible { opacity: 1; transform: none; }
.car-btn:hover { background: var(--ink); color: var(--card); }
.car-btn:active { transform: scale(.9) !important; }
.car-btn[disabled] { pointer-events: none; }
@media (hover: none) { .car-btn { display: none; } }
@media (max-width: 479px) { .carousel { margin: 22px -20px 0; } .scroller { padding: 4px 20px 8px; scroll-padding: 0 20px; } }
.shot { flex: none; width: 176px; padding: 0; border: 0; background: none; cursor: zoom-in; scroll-snap-align: start; border-radius: 20px; }
@media (min-width: 640px) { .shot { width: calc((100% - 24px) / 3.25); } }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 506 / 1100; border-radius: 20px; background: var(--panel); box-shadow: 0 0 0 .5px var(--line); transition: transform .3s var(--spring), box-shadow .3s; -webkit-user-drag: none; user-select: none; }
.shot:hover img { transform: translateY(-5px) scale(1.02); box-shadow: 0 0 0 .5px var(--line), 0 16px 30px rgba(0,0,0,.16); }
.shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.reviews-h { margin: 24px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; text-transform: uppercase; }
.reviews-car { margin-top: 8px; }
.review { flex: none; width: 272px; margin: 0; scroll-snap-align: start; background: var(--bg); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 6px; transition: transform .3s var(--spring), box-shadow .3s, background .2s; }
.review:hover { transform: translateY(-4px); box-shadow: var(--lift); background: var(--card); }
.stars { display: flex; gap: 2px; color: var(--accent); }
.stars svg { width: 13px; height: 13px; }
.review b { font-size: 15px; line-height: 1.25; }
.review p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); flex: 1; }
.review small { font-size: 12px; color: var(--ink-3); }

.actions { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 26px; }
/* download button: pixel-notched ink slab over a red one; it lifts on hover and presses down onto the red */
.dl {
  --notch: polygon(0 6px, 3px 6px, 3px 3px, 6px 3px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 6px, 100% 6px,
    100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px), calc(100% - 6px) calc(100% - 3px), calc(100% - 6px) 100%,
    6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px));
  position: relative; display: inline-block; margin: 0 6px 6px 0; color: var(--card); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.dl::before { content: ""; position: absolute; inset: 0; background: var(--accent); clip-path: var(--notch); transform: translate(6px, 6px); }
.dl-face {
  position: relative; display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 24px 0 18px;
  background: var(--ink); clip-path: var(--notch); transition: transform .18s steps(3);
}
.dl-face > svg { width: 30px; height: 30px; flex: none; shape-rendering: crispEdges; }
.dl-face .pix-r { transition: transform .2s steps(2); }
.dl-face span { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.dl-face small { font-size: 12px; opacity: .72; letter-spacing: .01em; }
.dl-face b { font-family: var(--font-display); font-size: 23px; font-weight: 700; letter-spacing: -.02em; margin-top: 3px; }
a.dl:hover .dl-face { transform: translate(-2px, -2px); }
a.dl:hover .pix-r { animation: drop .8s steps(1) infinite; }
@keyframes drop { 0% { transform: translateY(-2px); } 33% { transform: translateY(0); } 66% { transform: translateY(1px); } }
a.dl:active .dl-face { transform: translate(6px, 6px); transition-duration: .06s; }
a.dl:focus-visible { outline: none; }
a.dl:focus-visible .dl-face { box-shadow: inset 0 0 0 3px var(--accent); }
.dl[aria-disabled="true"] { opacity: .35; cursor: not-allowed; }
.dl[aria-disabled="true"]::before { display: none; }
.soon-note { font-size: 13px; color: var(--ink-3); }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
.links a, .ulink {
  font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 11px 0;
  background: linear-gradient(currentColor, currentColor) 50% calc(100% - 9px) / 0 1px no-repeat; transition: color .15s, background-size .25s;
}
.links a:hover, .ulink:hover { color: var(--ink); background-size: 100% 1px; }


/* screenshot viewer */
dialog.viewer { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: transparent; }
dialog.viewer::backdrop { background: rgba(8,8,10,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.viewer-in { width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: calc(72px + env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); touch-action: pan-y; }
.viewer img { max-height: calc(100dvh - 170px); max-width: min(92vw, 520px); width: auto; height: auto; border-radius: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: zoom-in .28s cubic-bezier(.2,.9,.3,1.1); user-select: none; -webkit-user-drag: none; }
@keyframes zoom-in { from { opacity: 0; transform: scale(.92); } }
.viewer-bar { display: flex; align-items: center; gap: 14px; color: #fff; margin-top: 12px; }
.viewer-bar button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .15s, transform .2s var(--spring); }
.viewer-bar button:hover { background: rgba(255,255,255,.28); transform: scale(1.08); }
.viewer-bar button:active { transform: scale(.92); }
.viewer-bar svg { width: 20px; height: 20px; }
.viewer-bar span { min-width: 48px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; opacity: .8; }
.viewer-close { position: absolute; z-index: 1; top: calc(12px + env(safe-area-inset-top)); right: 14px; margin: 0; }


.burger { display: grid; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; place-items: center; margin-right: -8px; padding: 0; border-radius: 12px; transition: background .15s; }
.burger:hover { background: var(--hover); }
.burger svg { width: 26px; height: 26px; overflow: visible; shape-rendering: crispEdges; transition: transform .25s var(--spring); }
.burger:hover svg { transform: rotate(-6deg) scale(1.06); }
.burger:active svg { transform: scale(.88); }
.burger rect { transform-box: fill-box; transform-origin: center; transition: transform .3s var(--spring), opacity .2s; }
.burger .b1 { fill: var(--ink); }
.burger .b2 { fill: var(--ink); transform: translateX(-2.5px) scaleX(.72); }
.burger .b3 { fill: var(--accent); transform: translateX(-6px) scaleX(.33); }
.burger[aria-expanded="true"] .b1 { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .b2 { opacity: 0; transform: translateX(-9px) scaleX(0); }
.burger[aria-expanded="true"] .b3 { transform: translateY(-6px) rotate(-45deg); }
.sheet {
  position: fixed; inset: 0; z-index: 19; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(72px + env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  background: var(--bg); display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s;
}
.sheet.open { opacity: 1; visibility: visible; transition: opacity .2s; }
.sheet > * { opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .45s var(--spring); }
.sheet.open > * { opacity: 1; transform: none; transition-delay: calc(var(--k) * 45ms); }
.sheet .nav-item {
  display: grid; grid-template-columns: 52px minmax(0,1fr) 20px; gap: 14px; align-items: center; min-height: 72px; padding: 10px 14px;
  border-radius: 22px; background: var(--card); text-decoration: none; transition: transform .2s var(--spring), background .15s;
}
.sheet .nav-item:active { transform: scale(.97); }
.sheet .nav-item img { width: 52px; height: 52px; border-radius: 22.5%; box-shadow: 0 0 0 .5px var(--line); }
.sheet .nav-item img.pixel { image-rendering: pixelated; }
.sheet .ptile { width: 52px; height: 52px; border-radius: 22.5%; display: grid; place-items: center; background: var(--bg); color: var(--ink); box-shadow: 0 0 0 .5px var(--line); transition: transform .3s var(--spring); }
.sheet .ptile svg { width: 48px; height: 48px; }
.sheet .nav-item:hover .ptile, .sheet .nav-item:hover img { transform: rotate(-6deg) scale(1.05); }
.sheet .nav-item img { transition: transform .3s var(--spring); }
.sheet .nav-item b { display: block; font-family: var(--font-display); font-size: 21px; letter-spacing: -.01em; line-height: 1.15; }
.sheet .nav-item small { display: block; color: var(--ink-2); font-size: 14px; line-height: 1.3; }
.sheet .nav-item > svg { width: 18px; height: 18px; color: var(--ink-3); }
.sheet .sheet-h { margin: 14px 4px 2px; font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .02em; }

/* menu: the burger opens the same full-screen sheet as on the home page */
.top-r { justify-self: end; display: flex; align-items: center; gap: 6px; }
.burger { margin-right: -8px; }
.sheet { z-index: 4; }
.sheet a { color: inherit; }
.top.menu-open .lang { display: flex; }
html.menu-lock { overflow: hidden; }
@media (max-width: 479px) { .top .lang { display: none; } .top.menu-open .lang { display: flex; } }

/* app page */
.app-card { background: var(--card); border-radius: 28px; padding: 24px 24px 8px; margin-top: 20px; overflow: clip; }
.app-hero { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: center; }
.app-hero img { width: 84px; height: 84px; border-radius: 22.5%; display: block; box-shadow: 0 0 0 .5px var(--line), 0 6px 18px rgba(0,0,0,.10); }
.app-hero h1 { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 6vw, 36px); letter-spacing: -.02em; line-height: 1.08; }
.app-hero .app-sub { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.3; }
.app-card .meta { margin-top: 20px; }
.app-more-in { margin: 0 -24px; padding: 0 24px; }
.app-card .feats { margin-top: 16px; }
.app-card .actions { margin-top: 24px; padding-bottom: 16px; }
.carousel { position: relative; margin: 22px -24px 0; }
.sec { margin-top: 44px; }
.sec-h { margin: 0 6px 16px; display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.sec-h svg { height: calc(var(--r) * 3px); width: auto; flex: none; shape-rendering: crispEdges; }
@media (max-width: 479px) {
  .app-card { padding: 20px 20px 4px; border-radius: 26px; }
  .app-hero { grid-template-columns: 68px minmax(0, 1fr); gap: 14px; }
  .app-hero img { width: 68px; height: 68px; }
  .carousel { margin: 22px -20px 0; }
  .scroller { padding: 4px 20px 8px; scroll-padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
