/* riri's landing page (ririgame.net). The app's own colours (sampled from its home screen), Vazirmatn from the
   app, no outside fonts or scripts: the site must also load on Iran's national internet. RTL first. */

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #141a2c;
  --bg-deep: #0b0f1e;
  --panel: #1b1f31;
  --panel-2: #23283e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #ede7d9;
  --soft: #d3cdc1;
  --muted: #a9a7ba;
  --amber: #e8a33d;
  --amber-hi: #f6c66b;
  --ink: #1a1410;
  --teal: #92d0bb;
  --moon: #f7e9b8;
  --radius: 20px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.45;
}

p {
  margin: 0;
}

section[id] {
  scroll-margin-top: 76px;
}

:focus-visible {
  outline: 3px solid var(--amber-hi);
  outline-offset: 3px;
  border-radius: 10px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

.skip {
  position: absolute;
  top: -80px;
  right: 16px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.i {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 20, 40, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.top.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(16, 20, 40, 0.92);
}

.top__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
  color: var(--amber-hi);
  font-size: 23px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.nav {
  display: none;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--soft);
  font-size: 15.5px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

@media (min-width: 820px) {
  .nav {
    display: flex;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 16px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn--amber {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(232, 163, 61, 0.28), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.btn--amber:hover {
  background: #f0ad48;
  box-shadow: 0 14px 40px rgba(232, 163, 61, 0.42), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(27, 31, 49, 0.62);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(232, 163, 61, 0.55);
  transform: translateY(-2px);
}

.btn--small {
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 15.5px;
}

.btn--store {
  background: var(--panel-2);
  border-color: var(--line-strong);
  color: var(--text);
}

a.btn--store[href]:hover {
  border-color: rgba(232, 163, 61, 0.55);
  transform: translateY(-2px);
}

.btn--store[data-soon] {
  cursor: default;
  color: var(--muted);
}

.btn--store[data-soon]::after {
  content: "به‌زودی";
  padding: 1px 9px;
  border-radius: 8px;
  background: rgba(146, 208, 187, 0.14);
  color: var(--teal);
  font-size: 12.5px;
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 44px 0 96px;
  background:
    radial-gradient(120% 70% at 12% -12%, #2b3264 0%, rgba(43, 50, 100, 0) 58%),
    radial-gradient(80% 55% at 78% 108%, rgba(232, 163, 61, 0.2) 0%, rgba(232, 163, 61, 0) 62%),
    linear-gradient(180deg, #0f1329 0%, #141a2c 78%);
}

.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 22px 34px, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 92px 82px, rgba(255, 255, 255, 0.8) 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 164px 40px, rgba(255, 255, 255, 0.9) 50%, transparent 52%),
    radial-gradient(1px 1px at 232px 124px, rgba(255, 255, 255, 0.7) 50%, transparent 52%),
    radial-gradient(1.7px 1.7px at 302px 62px, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 54px 166px, rgba(255, 255, 255, 0.6) 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 134px 206px, rgba(255, 255, 255, 0.8) 50%, transparent 52%),
    radial-gradient(1px 1px at 272px 226px, rgba(255, 255, 255, 0.7) 50%, transparent 52%);
  background-size: 330px 270px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 92%);
}

.stars--2 {
  background-size: 470px 390px;
  background-position: 140px 70px;
  opacity: 0.35;
  animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from {
    opacity: 0.12;
  }
  to {
    opacity: 0.6;
  }
}

.moon {
  position: absolute;
  top: 54px;
  left: 6%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fffaea 0%, var(--moon) 46%, #e6cb82 100%);
  box-shadow: 0 0 60px 18px rgba(247, 233, 184, 0.18), 0 0 170px 70px rgba(247, 233, 184, 0.07);
  opacity: 0.92;
}

@media (max-width: 959px) {
  .moon {
    top: 12px;
    left: 5%;
    width: 58px;
    height: 58px;
  }
}

.fog {
  position: absolute;
  right: -25%;
  left: -25%;
  bottom: -70px;
  height: 230px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(176, 186, 226, 0.17), transparent 72%);
  filter: blur(8px);
  animation: drift 40s ease-in-out infinite alternate;
}

.fog--2 {
  bottom: 60px;
  height: 180px;
  opacity: 0.55;
  animation-duration: 56s;
  animation-direction: alternate-reverse;
}

@keyframes drift {
  from {
    transform: translateX(-7%);
  }
  to {
    transform: translateX(7%);
  }
}

.hero__grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 14px;
  border: 1px solid rgba(146, 208, 187, 0.24);
  border-radius: 999px;
  background: #1c2737;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(34px, 8vw, 62px);
  font-weight: 700;
  line-height: 1.38;
}

.glow {
  color: var(--amber-hi);
  text-shadow: 0 0 30px rgba(232, 163, 61, 0.45);
}

.lead {
  max-width: 34em;
  margin-top: 18px;
  color: var(--soft);
  font-size: clamp(17px, 2.3vw, 20px);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}

.perks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.perks .i {
  width: 18px;
  height: 18px;
  color: var(--teal);
  stroke-width: 2.6;
}

.hero__art {
  position: relative;
  padding: 6% 3% 10% 9%;
}

.device {
  position: relative;
  padding: 9px;
  border-radius: 26px;
  background: linear-gradient(160deg, #282e4b, #0d1020);
  box-shadow: var(--shadow), 0 0 0 1px var(--line-strong), 0 0 90px rgba(98, 110, 200, 0.16);
  transform: rotate(-2.5deg);
}

.device::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 3px;
  height: 46px;
  margin-top: -23px;
  border-radius: 3px;
  background: #3a4166;
}

.device img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  background: #0d1020;
}

.pumpkin {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 33%;
  max-width: 210px;
  filter: drop-shadow(0 0 26px rgba(232, 163, 61, 0.5)) drop-shadow(0 14px 18px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

.fireflies i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd27a;
  box-shadow: 0 0 10px 3px rgba(255, 196, 92, 0.7);
  opacity: 0;
  animation: firefly 7s ease-in-out infinite;
}

.fireflies i:nth-child(1) {
  top: 14%;
  left: 18%;
}

.fireflies i:nth-child(2) {
  top: 70%;
  left: 40%;
  animation-delay: 1.4s;
}

.fireflies i:nth-child(3) {
  top: 32%;
  left: 86%;
  animation-delay: 2.6s;
}

.fireflies i:nth-child(4) {
  top: 86%;
  left: 74%;
  animation-delay: 3.8s;
}

.fireflies i:nth-child(5) {
  top: 8%;
  left: 60%;
  animation-delay: 5s;
}

@keyframes firefly {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  20% {
    opacity: 1;
  }
  55% {
    transform: translate(16px, -24px);
  }
  80% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate(-10px, -46px);
  }
}

@media (min-width: 960px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: min(80vh, 760px);
    padding: 64px 0 104px;
  }

  .hero__grid {
    grid-template-columns: 1.02fr 1fr;
    gap: 56px;
  }
}

/* ---------- numbers ---------- */

.stats {
  position: relative;
  z-index: 2;
  margin-top: -52px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(27, 31, 49, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.stat b {
  display: block;
  color: var(--amber-hi);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.45;
}

.stat span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

@media (min-width: 860px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .stat {
    padding: 20px 22px;
  }
}

/* ---------- sections ---------- */

.section {
  padding: 72px 0;
}

.section--deep {
  background: linear-gradient(180deg, rgba(11, 15, 30, 0) 0%, rgba(11, 15, 30, 0.6) 14%, rgba(11, 15, 30, 0.6) 86%, rgba(11, 15, 30, 0) 100%);
}

.section__head {
  max-width: 740px;
  margin-bottom: 36px;
}

.section__head h2 {
  margin-top: 14px;
  font-size: clamp(28px, 4.8vw, 42px);
}

.section__head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17.5px;
}

/* ---------- games ---------- */

.games {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.game {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.game:hover {
  border-color: rgba(232, 163, 61, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(232, 163, 61, 0.12);
  transform: translateY(-4px);
}

.game__art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d1020;
}

.game__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game:hover .game__art img {
  transform: scale(1.04);
}

.mood {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  padding: 3px 12px;
  border-radius: 10px;
  background: rgba(27, 31, 49, 0.9);
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}

.game__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 20px;
}

.game h3 {
  font-size: 22px;
}

.game p {
  color: var(--soft);
  font-size: 15.5px;
  line-height: 1.85;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 6px 0 0;
  list-style: none;
}

.meta li {
  padding: 2px 12px;
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--teal);
  font-size: 14px;
}

.files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.files li {
  padding: 2px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--soft);
  font-size: 13.5px;
}

.note {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

@media (min-width: 640px) {
  .games {
    grid-template-columns: repeat(2, 1fr);
  }

  .game--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 880px) {
  .game--wide {
    flex-direction: row;
  }

  .game--wide .game__art {
    flex: 0 0 52%;
    aspect-ratio: auto;
    min-height: 330px;
  }

  .game--wide .game__body {
    justify-content: center;
    padding: 30px 32px;
  }

  .game--wide h3 {
    font-size: 28px;
  }
}

@media (min-width: 1040px) {
  .games {
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
  }

  .game {
    grid-column: span 2;
  }

  .game--half {
    grid-column: span 3;
  }

  .game--wide {
    grid-column: 1 / -1;
  }
}

/* ---------- together ---------- */

.together {
  display: grid;
  gap: 26px;
  align-items: center;
}

.square {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.square img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.square figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 48px 22px 18px;
  background: linear-gradient(0deg, rgba(11, 15, 30, 0.94), rgba(11, 15, 30, 0));
  color: var(--soft);
  font-size: 15.5px;
  line-height: 1.8;
}

.square figcaption b {
  color: var(--amber-hi);
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 36px;
}

.feature {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(232, 163, 61, 0.12);
  color: var(--amber-hi);
}

.feature h3 {
  font-size: 18px;
}

.feature p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

@media (min-width: 600px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .together {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .together .section__head {
    margin-bottom: 0;
  }
}

@media (min-width: 1040px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- screenshots ---------- */

.shots {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 6px 4px 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #39406a transparent;
  scrollbar-width: thin;
  list-style: none;
}

.shot figure {
  margin: 0;
}

.shot {
  flex: 0 0 min(86%, 620px);
  margin: 0;
  scroll-snap-align: center;
}

.shot a {
  display: block;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(160deg, #282e4b, #0d1020);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease;
}

.shot a:hover {
  border-color: rgba(232, 163, 61, 0.5);
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: #0d1020;
}

.shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.hint {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (min-width: 900px) {
  .hint {
    display: none;
  }

  .shots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .shot {
    min-width: 0;
  }

  .shot:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .shot figure {
    position: relative;
    height: 100%;
  }

  .shot a {
    height: 100%;
  }

  .shot img {
    height: 100%;
  }

  .shot figcaption {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    margin: 0;
    padding: 34px 14px 10px;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(0deg, rgba(11, 15, 30, 0.92), rgba(11, 15, 30, 0));
    color: var(--text);
    font-size: 14px;
    text-align: start;
    pointer-events: none;
  }
}

/* ---------- download ---------- */

.download {
  padding: 2px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(232, 163, 61, 0.75), rgba(146, 208, 187, 0.35) 50%, rgba(98, 110, 200, 0.45));
  box-shadow: var(--shadow);
}

.download__inner {
  display: grid;
  gap: 30px;
  padding: 28px 20px;
  border-radius: 26px;
  background: radial-gradient(80% 120% at 88% 0%, rgba(232, 163, 61, 0.14), rgba(232, 163, 61, 0) 60%), var(--panel);
}

.app {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app img {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.app h2 {
  font-size: clamp(24px, 4vw, 32px);
}

.app p {
  color: var(--muted);
  font-size: 15.5px;
}

.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.stores .btn--amber {
  grid-column: 1 / -1;
}

.small {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.sha {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.sha code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 12px;
  direction: ltr;
  unicode-bidi: isolate;
  word-break: break-all;
}

.download h3 {
  margin-bottom: 14px;
  font-size: 20px;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 14px 16px;
  padding-inline-start: 60px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(11, 15, 30, 0.45);
  color: var(--soft);
  font-size: 15.5px;
  line-height: 1.85;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, persian);
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 900px) {
  .download__inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 44px;
    padding: 44px 46px;
  }
}

/* ---------- questions ---------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 880px;
}

.faq details {
  padding: 2px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: rgba(232, 163, 61, 0.35);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-size: 17.5px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  border-right: 2px solid var(--amber-hi);
  border-bottom: 2px solid var(--amber-hi);
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
}

.faq details[open] summary::after {
  margin-top: 6px;
  transform: rotate(-135deg);
}

.faq details p {
  padding: 0 0 18px;
  color: var(--soft);
}

.faq a {
  color: var(--amber-hi);
}

/* ---------- footer ---------- */

.footer {
  padding: 44px 0 52px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--muted);
  font-size: 14.5px;
}

.footer__grid {
  display: grid;
  gap: 24px;
}

.footer .brand {
  font-size: 21px;
}

.footer p {
  margin-top: 10px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer nav a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 163, 61, 0.4);
}

.footer nav a:hover {
  color: var(--amber-hi);
}

.footer small a {
  color: var(--text);
}

.footer small {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.9;
}

@media (min-width: 860px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

/* ---------- not found ---------- */

.lost {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 66px);
  padding: 40px 20px 80px;
  text-align: center;
}

.lost img {
  width: 180px;
  margin: 0 auto 10px;
  filter: drop-shadow(0 0 26px rgba(232, 163, 61, 0.5));
}

.lost h1 {
  font-size: clamp(28px, 6vw, 40px);
}

.lost p {
  margin: 10px 0 26px;
  color: var(--muted);
}

/* ---------- picture viewer ---------- */

.viewer {
  width: 100%;
  max-width: min(96vw, 1280px);
  padding: 0;
  border: 0;
  background: transparent;
}

.viewer::backdrop {
  background: rgba(5, 7, 15, 0.88);
}

.viewer img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.viewer button {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 26, 44, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .cta .btn {
    flex: 1 1 100%;
  }

  .section {
    padding: 56px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
