* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; background: #36adfd; }
/* height follows the VISIBLE viewport (dvh), so the block is centred in what
   the phone actually shows, not in the area hidden behind Safari's address bar */
body {
  position: static; width: 100%; min-height: 100dvh; overflow-x: hidden; overflow-y: auto;
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #36adfd 0%, #a3d7fa 100%);
  color: #fff; -webkit-font-smoothing: antialiased;
}
canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; }
#sky { z-index: 0; } #bubbles { z-index: 2; pointer-events: none; }
/* dead-centre column — explicit offsets + transform, no `inset`, so it centres
   in older iOS Safari too */
.hero {
  position: relative; top: auto; left: auto; transform: none; margin: 0 auto; min-height: 100dvh; padding-top: 70px;
  width: min(92vw, 760px); z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(12px, 2.4vh, 24px);
  text-align: center; pointer-events: none;
}
.hero > * { pointer-events: auto; }
.hero img { display: block; margin: 0 auto; }
/* the wordmark is a bubble: it wobbles like one, and pops when you tap it */
.wordmark {
  width: min(78vw, 640px); height: auto; cursor: pointer;
  position: relative; left: 0.8%; /* matches the art's placement */
  filter: drop-shadow(0 14px 22px rgba(10, 50, 110, 0.35));
  transform-origin: 50% 60%;
  animation: bubbly 3.6s ease-in-out infinite;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.wordmark:hover { animation-duration: 2.2s; }
.wordmark.popping { animation: pop-reinflate 1.35s ease-out forwards; }
.soon { width: min(48vw, 380px); height: auto; filter: drop-shadow(0 10px 16px rgba(10, 50, 110, 0.35)); animation: bob 5s ease-in-out 0.6s infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes bubbly {
  0%   { transform: translateY(0) rotate(0deg) scale(1, 1); }
  20%  { transform: translateY(-10px) rotate(-1.6deg) scale(1.035, 0.965); }
  45%  { transform: translateY(2px) rotate(0.8deg) scale(0.975, 1.03); }
  70%  { transform: translateY(-7px) rotate(1.6deg) scale(1.03, 0.975); }
  100% { transform: translateY(0) rotate(0deg) scale(1, 1); }
}
/* pop: a quick swell and it's gone. reinflate: grows back smoothly from a
   small bubble with one soft overshoot, like blowing it up again. */
@keyframes pop-reinflate {
  0%   { transform: scale(1); opacity: 1; }
  8%   { transform: scale(1.12); opacity: 1; }
  13%  { transform: scale(1.22); opacity: 0; }
  38%  { transform: scale(0.3); opacity: 0; }
  46%  { transform: scale(0.35); opacity: 1; }
  72%  { transform: scale(1.05); opacity: 1; }
  86%  { transform: scale(0.98); }
  100% { transform: scale(1); opacity: 1; }
}

/* the clay button, straight from the art */
.cta { display: block; margin-top: clamp(4px, 1.5vh, 14px); line-height: 0; transition: transform 0.14s cubic-bezier(0.2, 1.4, 0.4, 1), filter 0.14s; filter: drop-shadow(0 14px 22px rgba(10, 50, 110, 0.35)); }
.cta img { width: min(60vw, 360px); height: auto; }
.cta:hover { transform: translateY(-3px) scale(1.03); filter: drop-shadow(0 18px 26px rgba(10, 50, 110, 0.4)) brightness(1.04); }
.cta:active { transform: translateY(2px) scale(0.99); filter: drop-shadow(0 6px 12px rgba(10, 50, 110, 0.35)); }
.sub { color: rgba(255, 255, 255, 0.95); font-weight: 700; font-size: clamp(0.9rem, 2.2vw, 1.05rem); text-shadow: 0 2px 8px rgba(10, 50, 110, 0.35); }
.sub a { color: #fff; }
.foot { position: relative; z-index: 3; display: flex; justify-content: center; gap: 10px; padding: 28px 20px calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot a {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.5); color: #fff;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background 0.15s;
}
.foot a:hover { background: rgba(255, 255, 255, 0.28); }
.foot svg { width: 17px; height: 17px; fill: currentColor; }

/* ---- apes.app-style frame: slim nav on top, hero in the middle, footer below ---- */
.nav {
  position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 0; width: 100%; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
}
.nav .brand img { height: 34px; width: auto; display: block; filter: drop-shadow(0 4px 8px rgba(10, 50, 110, 0.3)); }
.nav .links { display: flex; gap: 8px; }
.nav .links a {
  display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 14px; border-radius: 9999px; gap: 8px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; text-decoration: none; font-weight: 800; font-size: 0.85rem;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background 0.15s;
}
.nav .links a:hover { background: rgba(255, 255, 255, 0.28); }
.nav .links svg { width: 15px; height: 15px; fill: currentColor; }
.hero { width: min(94vw, 900px); }
.wordmark { width: min(86vw, 820px); left: 0; }
.tag { color: #fff; font-weight: 800; font-size: clamp(1rem, 2.4vw, 1.25rem); text-shadow: 0 2px 8px rgba(10, 50, 110, 0.35); margin-top: -4px; }
.foot { flex-direction: column; gap: 8px; align-items: center; }
.foot p { color: rgba(255, 255, 255, 0.85); font-size: 0.78rem; font-weight: 700; text-shadow: 0 1px 6px rgba(10, 50, 110, 0.35); }
.foot p a { color: #fff; }
@media (max-width: 640px) { .nav .links a span { display: none; } .nav .links a { width: 38px; padding: 0; } }

/* ---- the render is the hero ---- */
.hero { width: 100%; gap: 10px; }
.art { position: relative; width: min(94vw, calc(100dvh * 1.35), 1100px); aspect-ratio: 1600 / 740; pointer-events: auto; filter: drop-shadow(0 16px 26px rgba(10, 50, 110, 0.32)); }
.render { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-select: none; user-select: none; }
.hit {
  position: absolute; left: 26.9%; top: 66.2%; width: 45.6%; height: 29.7%;
  border-radius: 9999px; transition: box-shadow 0.15s, transform 0.15s;
}
.hit:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55), 0 12px 30px rgba(10, 50, 110, 0.35); transform: scale(1.02); }
.hit:active { transform: scale(0.99); }
.brand-text { color: #fff; font-weight: 900; font-size: 1.15rem; letter-spacing: -0.3px; text-shadow: 0 2px 8px rgba(10, 50, 110, 0.35); }
.brand-text b { color: #b5e42d; }
.foot p a { display: inline; width: auto; height: auto; border-radius: 0; background: none; border: none; backdrop-filter: none; -webkit-backdrop-filter: none; text-decoration: underline; }
@media (max-width: 640px) { .art { width: 96vw; } .sub { padding: 0 20px; } }

/* ---- store badges (coming soon) ---- */
/* cream store badges, like apes.app */
.nav .links .store {
  background: linear-gradient(180deg, #fffaf2 0%, #fff3e4 100%); border: 1.5px solid rgba(255, 220, 190, 0.9); color: #1d2233;
  height: 46px; padding: 0 18px 0 14px; gap: 10px; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 6px 18px rgba(10, 50, 110, 0.18);
}
.nav .links .store:hover { background: #fff; }
.nav .links .store svg { width: 20px; height: 20px; fill: #1d2233; }
.store-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-text small { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.6px; color: #7a6a5a; }
.store-text b { font-size: 1rem; font-weight: 800; color: #1d2233; letter-spacing: -0.2px; }
@media (max-width: 900px) { .nav .links .store .store-text { display: none; } .nav .links .store { width: 44px; padding: 0; justify-content: center; } }

/* ---- about ---- */
.about { position: relative; z-index: 3; padding: 20px 20px 60px; }
.about-inner {
  max-width: 900px; margin: 0 auto; padding: 36px 34px; border-radius: 26px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 32px rgba(10, 50, 110, 0.28);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  color: #fff; text-align: center;
}
.about h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; letter-spacing: -0.4px; text-shadow: 0 2px 8px rgba(10, 50, 110, 0.3); }
.about .lead { max-width: 680px; margin: 14px auto 28px; font-size: clamp(0.98rem, 2vw, 1.12rem); line-height: 1.6; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.card { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 18px; padding: 18px 18px 20px; }
.card .ico { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.card h3 { font-size: 1.02rem; font-weight: 900; margin-bottom: 6px; }
.card p { font-size: 0.9rem; line-height: 1.5; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.tg-cta {
  display: inline-block; margin-top: 26px; padding: 13px 24px; border-radius: 9999px; text-decoration: none; color: #1f3a0c; font-weight: 900;
  background: linear-gradient(180deg, #d6ff5e 0%, #b5e42d 55%, #7fb320 100%); border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 20px rgba(10, 50, 110, 0.3); transition: transform 0.12s, filter 0.12s;
}
.tg-cta:hover { transform: translateY(-2px); filter: brightness(1.05); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } .about-inner { padding: 26px 20px; } }
