/* Landing page: one peach screen, mascot in the middle. Colors from Theme.swift warmGradient (#F39A6B → #D9622F). */
/* All text is white; the shadow keeps it readable on the lighter top of the gradient. */
:root { --text-shadow: 0 1px 10px rgba(120, 40, 8, .35); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: #fff;
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(48vmax 48vmax at 50% 30%, #ffc9a6 0%, rgba(255, 201, 166, 0) 60%),
    linear-gradient(170deg, #f5a273 0%, #ea7f4a 45%, #d9622f 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #893e1e; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }


main {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 20px 24px;
}

/* Mascot stage */
.stage { position: relative; width: min(210px, 48vw); aspect-ratio: 1; margin-bottom: 8px; }
.halo {
  position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .9) 0%, rgba(255, 240, 228, .5) 42%, rgba(255, 255, 255, 0) 70%);
  animation: pulse 4.5s ease-in-out infinite;
}
.mascot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(150, 55, 15, .35));
  animation: float 4.5s ease-in-out infinite;
  transform-origin: 50% 85%;
  cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.mascot.hop { animation: hop .7s cubic-bezier(.3, 1.6, .5, 1) 1, float 4.5s ease-in-out .7s infinite; }
.shadow {
  position: absolute; left: 28%; right: 28%; bottom: -2%; height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120, 40, 10, .35), rgba(120, 40, 10, 0));
  animation: shadow 4.5s ease-in-out infinite;
}
.spark {
  position: absolute; color: #fff; font-size: 18px; line-height: 1;
  text-shadow: 0 0 12px rgba(255, 255, 255, .9);
  animation: twinkle 2.8s ease-in-out infinite;
}
.spark:nth-of-type(1) { top: 8%; left: 6%; }
.spark:nth-of-type(2) { top: 18%; right: 2%; font-size: 16px; animation-delay: .9s; }
.spark:nth-of-type(3) { bottom: 22%; left: 0; font-size: 14px; animation-delay: 1.6s; }
.spark:nth-of-type(4) { bottom: 12%; right: 8%; font-size: 20px; animation-delay: 2.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes shadow {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(.78); opacity: .6; }
}
@keyframes pulse {
  0%, 100% { transform: scale(.92); opacity: .75; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes twinkle {
  0%, 100% { transform: scale(.4) rotate(0); opacity: 0; }
  40%, 60% { transform: scale(1) rotate(45deg); opacity: 1; }
}
@keyframes hop {
  0% { transform: translateY(0) scale(1, 1); }
  20% { transform: translateY(0) scale(1.08, .9); }
  55% { transform: translateY(-26px) scale(.95, 1.06); }
  100% { transform: translateY(0) scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .halo, .mascot, .mascot.hop, .shadow, .spark { animation: none; }
  .spark { opacity: .8; }
}

/* Title */
h1 {
  margin: 12px 0 6px;
  font-family: -apple-system-ui-rounded, ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(2.6rem, 8vw, 4.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em;
  text-shadow: var(--text-shadow);
}
.subtitle { margin: 0; font-size: clamp(1.15rem, 3.6vw, 1.4rem); font-weight: 700; text-shadow: var(--text-shadow); }
.tagline { margin: 10px auto 0; max-width: 30em; font-size: 1.05rem; font-weight: 500; color: rgba(255, 255, 255, .95); text-shadow: var(--text-shadow); }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.store { display: inline-block; line-height: 0; border-radius: 12px; transition: transform .15s ease; }
.store:hover { transform: translateY(-2px); }
.store img { height: 56px; width: auto; filter: drop-shadow(0 10px 18px rgba(120, 40, 10, .3)); }

footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px;
  padding: 18px 20px calc(22px + env(safe-area-inset-bottom));
  font-size: .88rem; font-weight: 600;
  text-shadow: var(--text-shadow);
}
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-height: 640px) and (min-width: 600px) {
  .stage { width: 170px; }
  main { padding-top: 48px; }
}
