/* Lumen Lotus page. Colours and font come from the game (Fredoka, the night pond, pink / cyan / gold lotuses). */
@font-face { font-family: 'Fredoka'; src: url('fonts/fredoka-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('fonts/fredoka-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('fonts/fredoka-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('fonts/fredoka-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --night: #010609;
  --deep: #031a22;
  --teal: #06303a;
  --pink: #ff4fa8;
  --pink-soft: #ff86c6;
  --cyan: #3ff2d6;
  --cyan-soft: #7af8e6;
  --gold: #ffc23d;
  --gold-soft: #ffdc7a;
  --mint: #dffff6;
  --text: #eafcf8;
  --text-soft: rgba(226, 250, 244, 0.74);
  --line: rgba(160, 240, 220, 0.14);
  --card: rgba(8, 40, 48, 0.42);
  --font: 'Fredoka', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1100px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--night);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}
img, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3, summary { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ===== THE POND (behind everything below the hero; scrolls with the page) =====
   The soft teal and violet glows repeat every 1500px, so you see the water move as you scroll. */
.pond-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 520px at 78% 300px, rgba(11, 70, 80, 0.5), transparent 70%) 0 0 / 100% 1500px repeat-y,
    radial-gradient(60% 460px at 12% 1050px, rgba(60, 20, 70, 0.32), transparent 70%) 0 0 / 100% 1500px repeat-y,
    linear-gradient(180deg, var(--deep) 0%, #02121a 50%, var(--night) 100%);
  overflow: hidden;
}
/* Tap ripples: drawn over the visible screen (the script keeps them pinned to the page) */
.water { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.firefly {
  position: absolute;
  width: var(--s, 4px);
  height: var(--s, 4px);
  border-radius: 50%;
  background: #f2ffa0;
  box-shadow: 0 0 8px 2px rgba(216, 255, 96, 0.55);
  opacity: 0;
  animation: firefly var(--d, 7s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes firefly {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  30% { opacity: 0.9; }
  50% { transform: translate(var(--dx, 20px), var(--dy, -26px)); opacity: 0.35; }
  70% { opacity: 0.85; }
}

main, .topbar, .footer { position: relative; z-index: 1; }

/* ===== TOP BAR ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.topbar.scrolled {
  background: rgba(1, 12, 16, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.studio-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-soft);
  transition: color 0.2s, background 0.2s;
}
.studio-link:hover, .studio-link:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.08); }
.studio-link img { width: auto; height: 28px; }
.menu { display: flex; align-items: center; gap: 6px; }
.menu a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s, background 0.2s;
}
.menu a:hover, .menu a:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.08); }
.menu-cta {
  margin-left: 10px;
  padding: 8px 18px;
  border: 1.5px solid rgba(122, 248, 230, 0.7);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 500 16px var(--font);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.menu-cta:hover { background: rgba(63, 242, 214, 0.12); border-color: var(--cyan-soft); box-shadow: 0 0 18px rgba(63, 242, 214, 0.25); }
.menu-cta:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
section[id] { scroll-margin-top: 72px; }

/* ===== HERO: a playable pond ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 24px 120px;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 68% 42%, rgba(12, 74, 84, 0.75), transparent 70%),
    radial-gradient(60% 50% at 18% 70%, rgba(40, 18, 64, 0.5), transparent 70%),
    linear-gradient(180deg, #021820 0%, var(--deep) 45%, var(--night) 100%);
  cursor: crosshair;
  -webkit-tap-highlight-color: transparent;
}
/* Moonlight shimmer across the water */
.hero::before {
  content: '';
  position: absolute;
  left: -20%; right: -20%;
  top: 12%;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(150, 140, 255, 0.07) 45%, rgba(122, 248, 230, 0.05) 55%, transparent);
  transform: rotate(-6deg);
  filter: blur(8px);
  animation: shimmer 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes shimmer { from { transform: rotate(-6deg) translateX(-4%); } to { transform: rotate(-4deg) translateX(4%); } }
/* The hero melts into the page below */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(3, 26, 34, 0.9));
  pointer-events: none;
}
.pond { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(40px, 6vw, 110px);
  pointer-events: none;            /* taps go through to the pond... */
}
.hero-copy, .hero-device { pointer-events: auto; cursor: auto; }
.hero-copy { position: relative; max-width: 540px; }
/* a soft shadow on the water, so the text reads over the lotuses */
.hero-copy::before {
  content: '';
  position: absolute;
  inset: -16% -14%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(1, 10, 14, 0.7), rgba(1, 10, 14, 0));
  pointer-events: none;
}
.game-title {
  font-weight: 700;
  font-size: clamp(52px, 6.2vw, 88px);
  line-height: 0.98;
  white-space: nowrap;
  letter-spacing: -0.01em;
  animation: rise 0.9s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}
.game-title .lumen { color: #f2fffb; text-shadow: 0 0 18px rgba(122, 248, 230, 0.75), 0 0 46px rgba(63, 242, 214, 0.35); }
.game-title .lotus { color: #ff8ac8; text-shadow: 0 0 18px rgba(255, 79, 168, 0.7), 0 0 46px rgba(255, 79, 168, 0.35); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.tagline {
  margin-top: 22px;
  font-weight: 600;
  font-size: clamp(23px, 2.3vw, 30px);
  line-height: 1.25;
  animation: rise 0.9s 0.12s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}
.tagline .c { color: var(--cyan-soft); text-shadow: 0 0 16px rgba(63, 242, 214, 0.45); }
.tagline .g { color: var(--gold-soft); text-shadow: 0 0 16px rgba(255, 194, 61, 0.45); }
.pitch {
  margin-top: 16px;
  max-width: 44ch;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  color: rgba(234, 252, 248, 0.88);
}
.sub { margin-top: 12px; font-size: 16px; color: var(--text-soft); }
.hero-copy .store-buttons { justify-content: flex-start; }

/* The tip under the hero: tap the water + sound switch */
.pond-tip {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.pond-tip-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  border-radius: 999px;
  background: rgba(1, 14, 18, 0.62);
  border: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-soft);
  pointer-events: none;
}
.pond-tip-text i {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #c8fff2;
  box-shadow: 0 0 0 0 rgba(122, 248, 230, 0.7);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(122, 248, 230, 0.7); }
  100% { box-shadow: 0 0 0 14px rgba(122, 248, 230, 0); }
}
.sound-btn {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(1, 14, 18, 0.62);
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.sound-btn:hover { color: #fff; border-color: rgba(122, 248, 230, 0.5); }
.sound-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sound-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sound-btn .on { display: none; }
.sound-btn[aria-pressed="true"] { color: var(--cyan-soft); border-color: rgba(122, 248, 230, 0.55); }
.sound-btn[aria-pressed="true"] .on { display: inline; }
.sound-btn[aria-pressed="true"] .off { display: none; }

/* Gameplay in a phone */
.hero-device { position: relative; }
.hero-device::before {
  content: '';
  position: absolute;
  inset: -14% -30%;
  background: radial-gradient(closest-side, rgba(63, 242, 214, 0.2), rgba(255, 79, 168, 0.08) 60%, transparent 75%);
  pointer-events: none;
}
.device {
  position: relative;
  width: clamp(250px, 23vw, 320px);
  border: 9px solid #040d11;
  border-radius: 38px;
  overflow: hidden;
  background: #031a22;
  box-shadow: 0 0 0 1.5px rgba(150, 230, 215, 0.45), 0 0 40px rgba(63, 242, 214, 0.12), 0 30px 70px rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
.device:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.device-video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #031a22; }

/* ===== STORE BADGES ===== */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}
.store-badge {
  display: inline-block;
  border-radius: 9px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.store-badge img { height: 54px; width: auto; }
.store-badge:hover { transform: translateY(-2px); filter: brightness(1.15); }
.store-badge:active { transform: translateY(1px); }
.store-badge:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
/* Both store buttons always show (people share links with friends on the other phone); the visitor's own store comes first */
.is-ios .store-apple { order: -1; }

/* Before launch: the badges show, but can't be tapped yet */
.soon-note { display: none; }
[data-release="soon"] .soon-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 194, 61, 0.12);
  border: 1px solid rgba(255, 194, 61, 0.4);
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 15px;
}
[data-release="soon"] .soon-note + .store-buttons { margin-top: 14px; }
[data-release="soon"] .store-badge { pointer-events: none; cursor: default; opacity: 0.8; }
[data-release="soon"] .live-only,
[data-release="live"] .soon-only { display: none; }

/* ===== BANDS ===== */
.band {
  position: relative;
  background: rgba(1, 10, 14, 0.5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
h2 {
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.15;
  color: #f2fffb;
  text-shadow: 0 0 22px rgba(63, 242, 214, 0.25);
}
.lead { margin-top: 14px; font-size: 18px; color: var(--text-soft); }

/* ===== NUMBERS ===== */
.hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 20px 40px;
  text-align: center;
}
.hud-item strong {
  display: block;
  font-weight: 700;
  font-size: clamp(46px, 6.6vw, 72px);
  line-height: 1;
}
.hud-item:nth-child(3n+1) strong { color: var(--pink-soft); text-shadow: 0 0 22px rgba(255, 79, 168, 0.5); }
.hud-item:nth-child(3n+2) strong { color: var(--cyan-soft); text-shadow: 0 0 22px rgba(63, 242, 214, 0.5); }
.hud-item:nth-child(3n) strong { color: var(--gold-soft); text-shadow: 0 0 22px rgba(255, 194, 61, 0.5); }
.hud-item span { display: block; margin-top: 10px; font-size: 17px; color: var(--text-soft); }
.intro { max-width: 760px; margin: 0 auto; padding: 16px 20px 80px; text-align: center; }
.intro p { margin-top: 16px; font-size: 18px; color: var(--text-soft); }

/* ===== HOW TO PLAY ===== */
.how { max-width: var(--wrap); margin: 0 auto; padding: 100px 20px 90px; text-align: center; }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 34px 26px 30px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
}
.step-icon { width: 108px; height: 108px; margin: 0 auto 16px; }
.step h3 { font-weight: 600; font-size: 22px; line-height: 1.25; }
.step p { margin-top: 10px; font-size: 16.5px; color: var(--text-soft); }
.step-num {
  position: absolute;
  top: 16px; left: 18px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 600;
  font-size: 16px;
  color: var(--night);
}
.step:nth-child(1) .step-num { background: var(--pink-soft); }
.step:nth-child(2) .step-num { background: var(--cyan-soft); }
.step:nth-child(3) .step-num { background: var(--gold-soft); }

/* ===== TRAILER ===== */
.trailer { max-width: 960px; margin: 0 auto; padding: 90px 20px 100px; text-align: center; }
.trailer h2 { margin-bottom: 30px; }
.trailer video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* ===== FEATURES ===== */
.features { padding: 100px 20px; }
.features-inner { max-width: var(--wrap); margin: 0 auto; text-align: center; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
  text-align: left;
}
.feature {
  padding: 28px 26px 26px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(122, 248, 230, 0.3); }
.feature-icon { width: 64px; height: 64px; margin-bottom: 12px; }
.feature h3 { font-weight: 600; font-size: 21px; line-height: 1.25; }
.feature p { margin-top: 10px; font-size: 16.5px; color: var(--text-soft); }

/* ===== SCREENSHOTS ===== */
.shots { padding: 100px 0 90px; text-align: center; }
.shots-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.shot-grid img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(0, 0, 0, 0.45);
}
[data-zoom] { cursor: zoom-in; transition: transform 0.2s ease, box-shadow 0.2s ease; }
[data-zoom]:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(122, 248, 230, 0.35), 0 20px 40px rgba(0, 0, 0, 0.5); }
[data-zoom]:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.shot-dots { display: none; }

/* ===== FREE TO PLAY ===== */
.fair { padding: 100px 20px; }
.fair-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 40px;
  text-align: left;
}
.plan {
  padding: 30px 28px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
}
.plan-plus { border-color: rgba(255, 194, 61, 0.45); box-shadow: 0 0 36px rgba(255, 194, 61, 0.08); }
.plan h3 { font-weight: 600; font-size: 24px; }
.plan .price { margin-top: 2px; font-size: 16px; color: var(--text-soft); }
.plan-free .price { color: var(--cyan-soft); }
.plan-plus .price { color: var(--gold-soft); }
.plan ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 28px; font-size: 16.5px; color: rgba(234, 252, 248, 0.86); }
.plan li::before {
  content: '';
  position: absolute;
  left: 4px; top: 0.5em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan-soft);
  box-shadow: 0 0 10px rgba(63, 242, 214, 0.7);
}
.plan-plus li::before { background: var(--gold-soft); box-shadow: 0 0 10px rgba(255, 194, 61, 0.7); }
.fine-print { margin-top: 22px; font-size: 14.5px; color: var(--text-soft); }

/* ===== QUESTIONS ===== */
.faq { padding: 90px 20px; }
.faq-inner { max-width: 780px; margin: 0 auto; }
.faq h2 { text-align: center; margin-bottom: 30px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  font-weight: 500;
  font-size: 19px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex: none;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(122, 248, 230, 0.1);
  color: var(--cyan-soft);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover, .faq-item summary:focus-visible { color: var(--cyan-soft); outline: none; }
.faq-item p { padding: 0 4px 22px; color: var(--text-soft); font-size: 17px; max-width: 64ch; }
.faq-item a { color: var(--cyan-soft); }

/* ===== FINAL ===== */
.final { text-align: center; padding: 100px 20px 120px; }
.final-lotus { width: 170px; height: 170px; margin: 0 auto 18px; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.final p { margin-top: 12px; font-size: 18px; color: var(--text-soft); }

/* ===== POP-UPS ===== */
.get-dialog {
  margin: auto;
  width: min(440px, calc(100vw - 32px));
  padding: 46px 32px 36px;
  border: 1px solid rgba(122, 248, 230, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, #06303a 0%, #031a22 100%);
  color: var(--text);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(63, 242, 214, 0.1);
}
.get-dialog::backdrop { background: rgba(1, 6, 9, 0.82); }
.get-dialog .get-icon { width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 22px; }
.get-dialog h2 { font-size: 30px; margin-bottom: 10px; }
.get-dialog p { color: var(--text-soft); font-size: 17px; }
.get-dialog .store-buttons { flex-direction: column; align-items: center; margin-top: 24px; }
.get-dialog .store-badge img { height: 58px; }
.get-dialog .soon-note { margin-top: 20px; }
.get-dialog .get-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; transform: none; }

.viewer {
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  overflow: visible;
}
.viewer::backdrop { background: rgba(1, 6, 9, 0.9); }
.viewer img {
  width: auto;
  max-width: calc(100vw - 180px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 16px;
}
.viewer-btn {
  position: fixed;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #04161c;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.viewer-btn:hover { background: #0a2e38; }
.viewer-btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.viewer-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.viewer-close { top: 18px; right: 18px; }
.viewer-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.viewer-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ===== BACK TO TOP ===== */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 15;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(4, 22, 28, 0.92);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #0a2e38; }
.to-top:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ===== FOOTER ===== */
.footer { text-align: center; padding: 44px 20px 36px; background: rgba(0, 0, 0, 0.3); border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-bottom: 16px; }
.footer-links a { color: var(--text-soft); font-size: 15px; font-weight: 500; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--cyan-soft); text-decoration: underline; }
.footer .contact { font-size: 15px; color: var(--text-soft); margin-bottom: 10px; }
.footer .contact a { color: var(--cyan-soft); }
.footer .copyright { font-size: 13px; color: rgba(234, 252, 248, 0.45); }

/* ===== TABLETS AND PHONES ===== */
@media (max-width: 900px) {
  .hero { padding: 100px 20px 110px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-copy { margin: 0 auto; }
  .pitch { margin-left: auto; margin-right: auto; }
  .hero-copy .store-buttons { justify-content: center; }
  .hero-device { margin: 0 auto; }
  .device { width: min(280px, 70vw); }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar { padding: 12px 16px; }
  .menu a { display: none; }
  .menu-cta { margin-left: 0; }
  .hud { grid-template-columns: repeat(2, 1fr); row-gap: 30px; padding: 44px 20px 30px; }
  .how, .features, .fair, .faq { padding-top: 70px; padding-bottom: 70px; }
  .trailer { padding: 70px 20px; }
  .trailer video { border-radius: 14px; }
  .feature-grid, .plans { grid-template-columns: 1fr; }
  .shots { padding: 70px 0 64px; }
  .shots-inner { padding: 0; }
  .shots h2 { padding: 0 20px; }
  .shot-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 20px;
    scroll-padding: 0 20px;
    scrollbar-width: none;
  }
  .shot-grid::-webkit-scrollbar { display: none; }
  .shot-grid img { flex: 0 0 62%; width: 62%; min-width: 0; scroll-snap-align: center; }
  .shot-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .shot-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); transition: background 0.2s, transform 0.2s; }
  .shot-dots span.on { background: var(--cyan-soft); transform: scale(1.2); }
  .viewer img { max-width: calc(100vw - 24px); max-height: 80vh; }
  .viewer-prev, .viewer-next { top: auto; bottom: 18px; transform: none; }
  .viewer-prev { left: calc(50% - 64px); }
  .viewer-next { right: calc(50% - 64px); }
  .pond-tip { bottom: 24px; }
  .pond-tip-text { font-size: 14px; }
}

@media (max-width: 420px) {
  .studio-link span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .firefly { opacity: 0.6; }
}
