@font-face {
  font-family: Rubik;
  src: url("/assets/rubik.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #121b2f;
  --panel-raised: #17233a;
  --line: #2a3851;
  --text: #f0f4fa;
  --muted: #aab8cf;
  --mint: #89edba;
  --gold: #ffc078;
  --shadow: 0 30px 64px #01061388;
  font-family: Rubik, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.65; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, dl, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 20;
  padding: .6rem 1rem;
  transform: translateY(-160%);
  color: var(--bg);
  background: var(--mint);
  border-radius: 12px;
}
.skip:focus { transform: none; }

.masthead {
  background: #0d1426;
  border-block-end: 1px solid #222e46;
}
.header-inner { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; gap: 10px; align-items: center; flex: none; }
.brand img { border-radius: 9px; }
.brand > span { font-size: .99rem; font-weight: 840; letter-spacing: .045em; }
.brand > span span { color: var(--mint); }
.masthead nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.masthead nav a { color: var(--muted); font-size: .94rem; padding-block: 10px; }
.masthead nav a:hover, .footer a:hover { color: var(--mint); }

.hero {
  position: relative;
  min-height: 605px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 1.01fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-block: 61px 53px;
}

.intro { position: relative; z-index: 2; }
.identity { display: flex; align-items: center; gap: .9rem; margin-block-end: 24px; }
.identity img {
  flex: none;
  width: 68px;
  height: 68px;
  border: 1px solid #518b72;
  border-radius: 18px;
  box-shadow: 0 0 36px #85ebaa21, 0 12px 30px #030c1490;
}
.category { color: var(--mint); font-weight: 620; font-size: .96rem; }
.publisher { color: var(--muted); text-align: right; font-size: .86rem; }
h1 { font-weight: 820; font-size: clamp(3rem, 5.2vw, 5.15rem); line-height: 1.05; letter-spacing: -.035em; }
h1 span { display: block; color: #a2edc2; margin-block-start: 6px; font-size: .7em; font-weight: 760; }
.lead {
  max-width: 35rem;
  margin-block-start: 19px;
  color: var(--muted);
  font-size: clamp(1.02rem, .45vw + .88rem, 1.15rem);
  line-height: 1.75;
}
.actions { display: flex; gap: 11px; flex-wrap: wrap; margin-block-start: 26px; }
.action {
  min-height: 61px;
  min-width: 169px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 14px;
  border: 1px solid #354763;
  transition: background .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.action strong { display: block; font-size: 1rem; line-height: 1.25; font-weight: 740; }
.action small { display: block; font-size: .76rem; margin-block-start: 5px; line-height: 1.2; text-align: right; }
.action-download { color: #0b261e; background: var(--mint); border-color: var(--mint); box-shadow: 0 7px 25px #84ecb526; }
.action-download:hover { background: #b1f5d0; border-color: #b1f5d0; box-shadow: 0 8px 26px #84ecb546; }
.action-download small { color: #184536; }
.action-store { background: var(--panel); }
.action-store:hover { background: #1d2b43; border-color: #66789b; }
.action-store small { color: #c1ccdc; }
.android-mark {
  flex: none;
  display: block;
  position: relative;
  width: 25px;
  height: 19px;
  margin-inline: 1px 3px;
  margin-block: 5px 0;
  border-radius: 16px 16px 5px 5px;
  background: #184536;
}
.android-mark::before,.android-mark::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 2px;
  height: 6px;
  background: #184536;
  border-radius: 9px;
}
.android-mark::before { left: 4px; transform: rotate(-31deg); }
.android-mark::after { right: 4px; transform: rotate(31deg); }
.android-mark i,.android-mark b { position: absolute; top: 8px; width: 2.7px; height: 2.7px; border-radius: 50%; background: var(--mint); }
.android-mark i { left: 6px; }
.android-mark b { right: 6px; }
.play-mark { position: relative; width: 25px; aspect-ratio: 1; flex: none; }
.play-mark i { position: absolute; inset: 0; }
.play-mark i:nth-child(1) { background: #65cf83; clip-path: polygon(8% 2%, 62% 34%, 46% 50%); }
.play-mark i:nth-child(2) { background: #49bafa; clip-path: polygon(8% 2%, 46% 50%, 8% 98%); }
.play-mark i:nth-child(3) { background: #f0ca55; clip-path: polygon(62% 34%, 94% 50%, 63% 67%, 46% 50%); }
.play-mark i:nth-child(4) { background: #ed6d78; clip-path: polygon(8% 98%, 46% 50%, 63% 67%); }
.download-note { color: var(--muted); font-size: .87rem; margin-block-start: 11px; }

.hero-art { position: relative; min-height: 480px; isolation: isolate; overflow: hidden; }
.arcade-orbit {
  position: absolute;
  inset: 3% 3% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, #28624f66 0, #263d5a35 47%, transparent 69%);
  z-index: -2;
}
.arcade-orbit::after {
  content: "";
  position: absolute;
  inset: 8% 1%;
  border-radius: 50%;
  background-image: radial-gradient(#8dcabc55 1px, transparent 1.6px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse, black, transparent 71%);
}
.phone {
  position: absolute;
  overflow: hidden;
  border: 1px solid #456780;
  background: #111a2e;
  padding: 6px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  direction: ltr;
}
.phone img { height: auto; width: 100%; border-radius: 24px; }
.phone-front {
  z-index: 2;
  width: clamp(172px, 17.8vw, 225px);
  inset-inline-start: 27%;
  top: 6px;
  transform: rotate(-8deg);
}
.phone-behind {
  width: clamp(153px, 15vw, 194px);
  inset-inline-start: 53%;
  top: 55px;
  transform: rotate(10deg);
  border-color: #614f72;
}
.spark { position: absolute; width: 18px; height: 18px; z-index: 3; color: var(--mint); }
.spark::before,.spark::after { content: ""; position: absolute; background: currentColor; border-radius: 4px; }
.spark::before { inset: 8px 0; }
.spark::after { inset: 0 8px; }
.spark-a { inset-inline-start: 16%; top: 23%; }
.spark-b { inset-inline-end: 6%; bottom: 20%; transform: scale(.75); color: var(--gold); }
.orbit-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #9a7be4; inset-inline-end: 13%; top: 20%; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #11192d;
}
.facts > div { padding: 17px 20px; }
.facts > div + div { border-inline-start: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .87rem; }
.facts dd { margin: .2rem 0 0; font-size: 1.14rem; font-weight: 690; text-align: right; }

.section { margin-block-start: 58px; scroll-margin-block-start: 20px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-block-end: 21px; }
.section h2 { font-size: clamp(1.7rem, 1.8vw + 1rem, 2.45rem); font-weight: 780; line-height: 1.2; }
.section-head p, .about p { color: var(--muted); font-size: 1rem; margin-block-start: 8px; }
.gallery-controls { display: flex; gap: 7px; }
.nav-button {
  cursor: pointer;
  min-height: 42px;
  padding: 5px 13px;
  font-size: .88rem;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #172339;
}
.nav-button:disabled { opacity: .43; cursor: default; }
.nav-button:hover:not(:disabled) { background: #28374e; border-color: #545d78; }
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(185px, 19.8vw, 230px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 15px;
  margin-inline: -4px;
  scrollbar-color: #526687 #141e32;
  scrollbar-width: thin;
}
.gallery figure { min-width: 0; scroll-snap-align: start; }
.shot {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #3b5068;
  background: #1a2c44;
  transition: border-color .15s ease;
}
.shot:hover { border-color: var(--mint); }
.shot img { height: auto; width: 100%; }
.gallery figcaption { color: #d7e2ee; margin-block-start: 7px; font-weight: 560; font-size: .9rem; }

.about {
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 62px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(140deg, #162036, #111b30);
}
.about p { line-height: 1.8; max-width: 38rem; }
.library h3 { font-size: 1.13rem; font-weight: 700; }
.library ul { list-style: none; padding: 0; margin: 13px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.library li {
  background: #131d30;
  border: 1px solid #2d3b54;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  border-radius: 11px;
  padding: 4px 8px;
  font-size: .91rem;
}
.chip {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #25374a;
  font-size: .98rem;
  line-height: 1;
}
.chip.mint { color: var(--mint); }
.chip.violet { color: #c1adff; }
.chip.gold { color: var(--gold); }
.chip.sky { color: #8bc8ff; }
.chip.pink { color: #ffa4b6; }

.footer {
  margin-block-start: 43px;
  padding-block: 18px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-block-start: 1px solid var(--line);
}
.footer p { color: var(--muted); font-size: .87rem; }

.image-viewer {
  width: min(94vw, 610px);
  border-radius: 17px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 0;
  max-height: 94dvh;
  overscroll-behavior: contain;
}
.image-viewer::backdrop { background: #050914d9; }
.dialog-body { padding: 12px 15px; }
.viewer-top, .viewer-nav { display: flex; gap: 9px; justify-content: space-between; align-items: center; }
.viewer-top h2 { font-size: 1.1rem; }
.viewer-nav { justify-content: center; }
.image-viewer img { border-radius: 12px; max-height: 72dvh; width: auto; height: auto; margin: 10px auto; }
html:has(.image-viewer[open]) { overflow: hidden; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 44px); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(275px, .76fr); gap: 22px; min-height: unset; }
  .hero-art { min-height: 402px; }
  .phone-front { width: 164px; inset-inline-start: 15%; top: 16px; }
  .phone-behind { width: 142px; inset-inline-start: 46%; top: 49px; }
  .spark-a { inset-inline-start: 8%; }
  .spark-b { inset-inline-end: 9%; }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 59px; }
  .masthead nav { gap: 14px; }
  .masthead nav a { font-size: .87rem; }
  .hero { grid-template-columns: 1fr; gap: 17px; padding-block: 33px 15px; }
  .category { font-size: .87rem; }
  .identity { margin-block-end: 16px; }
  .identity img { width: 52px; height: 52px; border-radius: 13px; }
  h1 { font-size: clamp(2.75rem, 8.5vw, 3.8rem); }
  h1 span { margin-block-start: 6px; }
  .lead { margin-block-start: 11px; }
  .actions { margin-block-start: 17px; gap: 8px; }
  .action { min-width: 0; flex: 1; min-height: 58px; padding-inline: 10px; gap: 7px; }
  .action strong { font-size: .93rem; }
  .action small { font-size: .74rem; }
  .android-mark, .play-mark { scale: .85; }
  .hero-art { max-width: 430px; width: 100%; margin-inline: auto; min-height: 345px; }
  .phone-front { width: 150px; inset-inline-start: 27%; top: 0; }
  .phone-behind { width: 132px; inset-inline-start: 52%; top: 27px; }
  .phone { padding: 4px; border-radius: 21px; }
  .phone img { border-radius: 17px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { padding: 11px 12px; }
  .facts > div:nth-child(3) { border-inline-start: none; }
  .facts > div:nth-child(n + 3) { border-block-start: 1px solid var(--line); }
  .facts dd { font-size: 1rem; }
  .section { margin-block-start: 39px; }
  .section-head { align-items: flex-start; }
  .gallery-controls { align-self: flex-end; }
  .about { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 28px); }
  .hero-art { min-height: 313px; }
  .phone-front { width: 137px; inset-inline-start: 23%; }
  .phone-behind { width: 117px; inset-inline-start: 49%; }
  .action strong { font-size: .86rem; }
  .action small { font-size: .70rem; }
  .section-head { flex-wrap: wrap; }
  .gallery-controls { margin-inline-start: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { transition: none !important; scroll-behavior: auto !important; }
}
