/* HappyLauncher site v2: black page (owner: «фон сделай черный», no picture behind the page), Onest everywhere (the
   launcher's own font). What makes it Minecraft: game blocks floating around the real launcher window, real pictures
   of the launcher and of HappyWorld's rewards. Season art belongs to the battle pass card only. */
:root {
  --bg: #000;
  --panel: #0c0c0f;
  --panel-2: #15151a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f6;
  --text-2: #a6a6b0;
  --muted: #75757f;
  --accent: #a877ff;
  --accent-btn: linear-gradient(180deg, #9466ff 0%, #7c3aed 100%);
  --display: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
}

.wrap.narrow {
  width: min(760px, 100% - 32px);
}

.accent {
  color: var(--accent);
}

/* ---------------------------------------------------------------- appear: the first screen on load, the rest on scroll */
.rise {
  animation: rise 0.9s var(--ease) both;
}

.r2 {
  animation-delay: 0.08s;
}

.r3 {
  animation-delay: 0.16s;
}

.r4 {
  animation-delay: 0.24s;
}

.r5 {
  animation-delay: 0.32s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

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

/* ---------------------------------------------------------------- header */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.top.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.top-row {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand b {
  color: var(--accent);
  font-weight: 700;
}

.brand.small {
  font-size: 15px;
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* the cabinet lives on happyvisual.ru: the same account as in the launcher */
.btn.cabinet svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s ease,
    filter 0.25s ease,
    box-shadow 0.25s ease;
}

.btn.small {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn.big {
  height: 56px;
  padding: 0 28px;
  font-size: 16px;
  border-radius: 15px;
}

.btn.primary {
  background: var(--accent-btn);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* downloads are switched off for now: the buttons stay, but do nothing */
.btn.is-off,
.btn.is-off:hover {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

/* ---------------------------------------------------------------- hero */
.hero {
  padding-top: 148px;
  /* the leaning window and the blocks reach past the page edges; keep them from widening the page */
  overflow-x: clip;
}

.hero-text {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.version {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 8px 0 10px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

.version em {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(168, 119, 255, 0.15);
  color: var(--accent);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 30px 0 0;
  font-family: var(--display);
  font-size: clamp(44px, 7.4vw, 104px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

/* строка над лозунгом: что это за программа (для людей и поисковиков) */
.hero h1 .h1-kick {
  display: block;
  margin-bottom: 18px;
  color: var(--text-2);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.lead {
  max-width: 600px;
  margin: 28px auto 0;
  color: var(--text-2);
  font-size: 18px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.dl-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* plain facts with a pixel for a bullet */
.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.facts li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
}

/* the window leans back at first and straightens up while the page scrolls (the script sets --tilt and --scale) */
.stage {
  position: relative;
  margin-top: 84px;
  perspective: 1400px;
}

.tilt {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  transform: rotateX(var(--tilt, 0deg)) scale(var(--scale, 1));
  transform-origin: 50% 0;
  will-change: transform;
}

.js .tilt {
  --tilt: 24deg;
  --scale: 0.92;
}

.frame {
  border-radius: 20px;
  overflow: hidden;
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.frame img {
  width: 100%;
}

/* ---------------------------------------------------------------- Minecraft blocks (the script puts the game textures on the faces) */
.voxels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.voxels.back {
  z-index: 0;
}

.voxels.front {
  z-index: 2;
}

.vx {
  --k: 1;
  position: absolute;
  width: calc(var(--s) * var(--k));
  height: calc(var(--s) * var(--k));
  margin: calc(var(--s) * var(--k) / -2) 0 0 calc(var(--s) * var(--k) / -2);
  /* the mouse and the scroll move near blocks more than far ones (the script sets --mx, --my, --sy) */
  transform: translate3d(
    calc(var(--mx, 0) * var(--d) * 28px),
    calc(var(--my, 0) * var(--d) * 22px - var(--sy, 0) * var(--d) * 0.14px),
    0
  );
  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.3, 1);
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.55));
}

.voxels.back .vx {
  filter: blur(1.6px) brightness(0.75);
}

.vx-float {
  display: block;
  width: 100%;
  height: 100%;
  animation: bob var(--bob, 7s) ease-in-out infinite alternate;
}

.vx-cube {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: perspective(700px) rotateX(-24deg) rotateY(var(--ry));
  animation: turn calc(var(--bob, 7s) * 1.7) ease-in-out infinite alternate;
}

.vx-cube i {
  position: absolute;
  inset: 0;
  background-size: 100% 100%;
  image-rendering: pixelated;
  backface-visibility: hidden;
}

.vx-cube .ft {
  transform: rotateX(90deg) translateZ(calc(var(--s) * var(--k) / 2));
  filter: brightness(1.12);
}
.vx-cube .fb {
  transform: rotateX(-90deg) translateZ(calc(var(--s) * var(--k) / 2));
  filter: brightness(0.45);
}
.vx-cube .ff {
  transform: translateZ(calc(var(--s) * var(--k) / 2));
  filter: brightness(0.86);
}
.vx-cube .fk {
  transform: rotateY(180deg) translateZ(calc(var(--s) * var(--k) / 2));
  filter: brightness(0.6);
}
.vx-cube .fl {
  transform: rotateY(-90deg) translateZ(calc(var(--s) * var(--k) / 2));
  filter: brightness(0.68);
}
.vx-cube .fr {
  transform: rotateY(90deg) translateZ(calc(var(--s) * var(--k) / 2));
  filter: brightness(0.68);
}

@keyframes bob {
  from {
    transform: translateY(-7px);
  }
  to {
    transform: translateY(9px);
  }
}

@keyframes turn {
  from {
    transform: perspective(700px) rotateX(-24deg) rotateY(var(--ry));
  }
  to {
    transform: perspective(700px) rotateX(-18deg) rotateY(calc(var(--ry) + 16deg));
  }
}

/* ---------------------------------------------------------------- sections */
.section {
  padding-top: 160px;
  scroll-margin-top: 40px;
}

.head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.head p {
  margin: 18px auto 0;
  max-width: 600px;
  color: var(--text-2);
  font-size: 17px;
}

/* the big heading on the left, its words on the right */
.head.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 48px;
  max-width: none;
  margin-bottom: 72px;
  text-align: left;
}

.head.split p {
  justify-self: end;
  max-width: 430px;
  margin: 0 0 6px;
  font-size: 18px;
}

/* ---------------------------------------------------------------- the story: steps on the left, one pinned window on the right */
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
}

.story-steps {
  padding-bottom: 12vh;
}

.step {
  min-height: 76vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  opacity: 0.25;
  transition: opacity 0.5s ease;
}

.step.is-active {
  opacity: 1;
}

.step-num {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(168, 119, 255, 0.14);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.step h3 {
  margin: 18px 0 16px;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.step p {
  max-width: 440px;
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
}

/* on phones every step carries its own screenshot instead of the pinned window */
.step-shot {
  display: none;
}

.story-sticky {
  position: sticky;
  top: calc(50vh - 240px);
}

.story-stage {
  position: relative;
}

.story-frame {
  position: relative;
  aspect-ratio: 1180 / 700;
}

.story-img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.6s ease,
    transform 0.9s var(--ease);
}

.story-img.is-active {
  opacity: 1;
  transform: none;
}

.story-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.story-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition:
    width 0.35s var(--ease),
    background 0.35s ease;
}

.story-dots i.is-active {
  width: 28px;
  background: var(--accent);
}

/* ---------------------------------------------------------------- HappyCoins: cards with the real art */
.coins-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 28px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.card-text {
  position: relative;
  z-index: 2;
}

.card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.card p {
  max-width: 440px;
  margin: 0;
  color: var(--text-2);
  font-size: 15.5px;
}

.card.reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.card.reveal:nth-child(3) {
  transition-delay: 0.04s;
}
.card.reveal:nth-child(4) {
  transition-delay: 0.12s;
}
.card.reveal:nth-child(5) {
  transition-delay: 0.2s;
}

/* the battle pass: the season's own art behind the words */
.pass {
  grid-column: span 2;
  min-height: 440px;
  justify-content: flex-end;
}

.pass-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease);
}

.pass:hover .pass-art {
  transform: scale(1.07);
}

.pass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 42%, rgba(0, 0, 0, 0) 72%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 45%);
}

.pass p {
  max-width: 400px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  margin-bottom: 14px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
}

/* HappyCoins: the pixel coin, turned into a thick spinning coin from stacked copies of itself */
.coin-card {
  justify-content: flex-end;
}

.coin3d {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 190px;
  perspective: 700px;
}

.coin-spin {
  position: relative;
  width: 132px;
  height: 132px;
  transform-style: preserve-3d;
  animation: spin 7s linear infinite;
}

.coin-spin img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

@keyframes spin {
  from {
    transform: rotateX(8deg) rotateY(0deg);
  }
  to {
    transform: rotateX(8deg) rotateY(360deg);
  }
}

/* the daily reward: seven days of a streak, as in the launcher */
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: auto 0 0;
  padding: 26px 0 0;
  list-style: none;
}

.days li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0 9px;
  border-radius: 12px;
  background: var(--panel-2);
}

.days span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.days img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}

.days b {
  font-size: 14px;
  font-weight: 700;
}

.days li.big {
  background: rgba(168, 119, 255, 0.16);
}

.days li.big img {
  width: 28px;
  height: 28px;
  margin: -3px 0;
}

.daily .card-text {
  order: -1;
}

/* the cases fanned out */
.cases-fan {
  position: relative;
  height: 196px;
  margin: -4px 0 22px;
}

.cases-fan img {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 132px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.6s var(--ease);
}

.cases-fan img:nth-child(1) {
  transform: translateX(-104%) rotate(-10deg);
}
.cases-fan img:nth-child(2) {
  z-index: 1;
  top: 4px;
  width: 150px;
  transform: translateX(-50%);
}
.cases-fan img:nth-child(3) {
  transform: translateX(4%) rotate(10deg);
}

.cases:hover .cases-fan img:nth-child(1) {
  transform: translateX(-112%) rotate(-14deg);
}
.cases:hover .cases-fan img:nth-child(2) {
  transform: translateX(-50%) translateY(-6px) scale(1.04);
}
.cases:hover .cases-fan img:nth-child(3) {
  transform: translateX(12%) rotate(14deg);
}

/* cosmetics from the shop */
.shop-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 22px;
}

.shop-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.5s var(--ease);
}

.shop:hover .shop-row img:nth-child(2) {
  transform: translateY(-6px);
}

/* ---------------------------------------------------------------- themes: pick one, it comes to the front of the fan */
.swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 920px;
  margin: 0 auto 44px;
}

.sw {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 15px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

/* each swatch: the theme's sidebar colour and its accent, as in the launcher */
.sw[data-theme="dark"] {
  --a: #16181d;
  --b: #a877ff;
}
.sw[data-theme="light"] {
  --a: #ffffff;
  --b: #7c3aed;
}
.sw[data-theme="lavender"] {
  --a: #fbf9ff;
  --b: #8b5cf6;
}
.sw[data-theme="mint"] {
  --a: #ffffff;
  --b: #10a36a;
}
.sw[data-theme="rose"] {
  --a: #ffffff;
  --b: #e2457a;
}
.sw[data-theme="midnight"] {
  --a: #111a2d;
  --b: #9b7bff;
}
.sw[data-theme="forest"] {
  --a: #111b15;
  --b: #3ccf7a;
}
.sw[data-theme="ocean"] {
  --a: #0c1d22;
  --b: #22bcd3;
}
.sw[data-theme="sunset"] {
  --a: #1c1412;
  --b: #ff7a45;
}

.sw::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.sw:hover {
  color: var(--text);
}

.sw.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.fan {
  position: relative;
  max-width: 860px;
  height: 520px;
  margin: 0 auto;
}

.fan img {
  position: absolute;
  width: 72%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  transition:
    transform 0.6s var(--ease),
    opacity 0.35s ease;
}

.fan-1 {
  left: 0;
  top: 40px;
  transform: rotate(-8deg);
}
.fan-2 {
  left: 9%;
  top: 20px;
  transform: rotate(-3deg);
}
.fan-3 {
  left: 18%;
  top: 10px;
  transform: rotate(2deg);
}
.fan-4 {
  left: 28%;
  top: 30px;
  transform: rotate(7deg);
}

.fan:hover .fan-1 {
  transform: rotate(-12deg) translateX(-30px);
}
.fan:hover .fan-2 {
  transform: rotate(-5deg) translateX(-10px);
}
.fan:hover .fan-3 {
  transform: rotate(3deg) translateX(10px);
}
.fan:hover .fan-4 {
  transform: rotate(10deg) translateX(30px);
}

/* the front card while it changes to another theme */
.fan img.is-swapping {
  opacity: 0;
}

/* ---------------------------------------------------------------- FAQ: a plain list with thin lines */
.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-q svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    transform 0.4s var(--ease),
    stroke 0.2s ease;
}

.faq-q:hover svg,
.faq-item.is-open .faq-q svg {
  stroke: var(--text);
}

.faq-item.is-open .faq-q svg {
  transform: rotate(180deg);
}

/* the answer grows in height; without the script every answer stays open */
.faq-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.js .faq-item:not(.is-open) .faq-body {
  grid-template-rows: 0fr;
}

.faq-clip {
  min-height: 0;
  overflow: hidden;
}

.faq-body p {
  max-width: 640px;
  margin: 0;
  padding-bottom: 22px;
  color: var(--text-2);
}

.faq-more {
  margin: 28px 0 0;
  color: var(--muted);
  text-align: center;
}

.faq-more a,
.faq-clip a {
  color: var(--accent);
}

/* ---------------------------------------------------------------- last call, among the blocks */
.final {
  padding-bottom: 170px;
}

.final-stage {
  position: relative;
  padding: 40px 0;
}

.final .voxels {
  z-index: 0;
}

.final .head,
.final .cta {
  position: relative;
  z-index: 1;
}

.final .head {
  margin-bottom: 0;
}

.final-mark {
  width: 64px;
  margin: 0 auto 26px;
}

.final .head h2 {
  font-size: clamp(36px, 5.6vw, 76px);
}

.final .cta {
  margin-top: 34px;
}

/* ---------------------------------------------------------------- footer */
.foot {
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-left: auto;
  color: var(--text-2);
  font-size: 15px;
}

.foot-links a:hover {
  color: var(--text);
}

.legal {
  width: 100%;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------------------------------------------------------------- floating download bar */
.dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 9px 9px 12px;
  border-radius: 18px;
  background: rgba(16, 16, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, calc(100% + 40px));
  transition: transform 0.6s var(--ease);
}

.dock.is-shown {
  transform: translate(-50%, 0);
}

.dock.is-closed,
.dock[hidden] {
  display: none;
}

.dock-text b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.dock-text small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.dock-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.dock-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.dock-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* ---------------------------------------------------------------- tablets and phones */
@media (max-width: 1100px) {
  .nav {
    gap: 20px;
  }
  .card {
    padding: 24px;
  }
  .days span {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  /* on a phone the cabinet keeps only its icon */
  .btn.cabinet {
    width: 38px;
    padding: 0;
  }
  .btn.cabinet span {
    display: none;
  }
  .hero {
    padding-top: 120px;
  }
  .vx {
    --k: 0.62;
  }
  .head.split {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 48px;
  }
  .head.split p {
    justify-self: start;
  }
  .section {
    padding-top: 120px;
  }
  .story {
    display: block;
  }
  .story-view {
    display: none;
  }
  .story-steps {
    padding-bottom: 0;
  }
  .step {
    min-height: 0;
    opacity: 1;
    padding-bottom: 64px;
  }
  .step-shot {
    display: block;
    width: 100%;
    margin-top: 24px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .step-shot img {
    width: 100%;
  }
  .coins-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pass {
    grid-column: span 2;
  }
  .days span {
    display: block;
  }
  .fan {
    height: 400px;
  }
}

@media (max-width: 640px) {
  .coins-grid {
    grid-template-columns: 1fr;
  }
  .pass {
    grid-column: auto;
    min-height: 400px;
  }
  .pass::before {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.1) 100%);
  }
  .days span {
    display: none;
  }
}

@media (max-width: 560px) {
  .lead {
    font-size: 16.5px;
  }
  .facts {
    gap: 8px 18px;
    font-size: 14px;
  }
  .stage {
    margin-top: 56px;
  }
  .vx {
    --k: 0.48;
  }
  /* on a phone the last call keeps only the blocks in its top corners, away from the words */
  .final .vx:nth-child(n + 3) {
    display: none;
  }
  .frame {
    border-radius: 14px;
  }
  .head p,
  .head.split p,
  .step p {
    font-size: 16px;
  }
  .card {
    padding: 22px;
    min-height: 0;
  }
  .cases-fan img {
    width: 118px;
  }
  .cases-fan img:nth-child(2) {
    width: 134px;
  }
  .sw {
    height: 36px;
    font-size: 13px;
  }
  .sw::before {
    width: 20px;
    height: 20px;
  }
  .fan {
    height: 250px;
  }
  .faq-q {
    font-size: 16px;
  }
  .foot-links {
    margin-left: 0;
  }
  .foot {
    padding-bottom: 100px;
  }
  .dock {
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: translateY(calc(100% + 30px));
  }
  .dock.is-shown {
    transform: none;
  }
  .dock-text {
    flex: 1;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js .tilt {
    --tilt: 0deg;
    --scale: 1;
  }
  .vx-float,
  .vx-cube,
  .coin-spin {
    animation: none;
  }
  .vx {
    transition: none;
  }
}
