/* Self-contained styles for the Universal Links fallback landing.
   Palette + wobble animation ported from amuseemus_web (app/app.css); kept
   dependency-free (no Tailwind at runtime) so the served bundle stays tiny. */

:root {
  --primary: #815512;
  --background: #fff8f4;
  --on-background: #211b13;
  --on-surface-muted: rgba(33, 27, 19, 0.6);
  --inverse-surface: #362f27;
  --inverse-on-surface: #fceee2;
  --container: rgba(100, 63, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #e8c26c;
    --background: #17130b;
    --on-background: #ebe1d4;
    --on-surface-muted: rgba(235, 225, 212, 0.6);
    --inverse-surface: #ebe1d4;
    --inverse-on-surface: #353027;
    --container: rgba(232, 194, 108, 0.1);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--background);
  color: var(--on-background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

/* ── Logo (adaptive) ─────────────────────────────────────────────────── */
.logo {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 28px;
  min-height: 96px;
}

.logo__icon img {
  height: 96px;
  width: auto;
  transform-origin: center bottom;
  animation: wobble 3s ease-in-out infinite;
}

.logo__wordmark img {
  height: 44px;
  width: auto;
}

/* Desktop / wide: icon perched over the wordmark (as in the site header).
   Geometry mirrors amuseemus_web Header.tsx (-top-3 / left-6 / h-15 over h-10),
   so the spring sits on the wordmark between "A" and "USEEMUS" instead of
   floating above it. min-height is dropped here so the box hugs the wordmark
   (on mobile the 96px icon lives in flow and still needs it). */
@media (min-width: 480px) {
  .logo {
    align-items: center;
    min-height: 0;
  }
  .logo__icon {
    position: absolute;
    top: -12px;
    left: 24px;
    z-index: 1;
  }
  .logo__icon img {
    height: 60px;
  }
  .logo__wordmark img {
    height: 40px;
  }
}

/* Mobile: icon only (wordmark hidden), matching the app header behavior. */
@media (max-width: 479px) {
  .logo__wordmark {
    display: none;
  }
}

@keyframes wobble {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(3deg);
  }
  75% {
    transform: rotate(-3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo__icon img {
    animation: none;
  }
}

/* ── Copy ────────────────────────────────────────────────────────────── */
.headline {
  margin: 0 0 4px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.subhead {
  margin: 0 0 28px;
  font-size: 0.9rem;
  color: var(--on-surface-muted);
}

/* ── Store buttons ───────────────────────────────────────────────────── */
.stores {
  background: var(--container);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.store:hover {
  opacity: 0.9;
}

.store svg {
  height: 22px;
  width: 22px;
}

.shadow {
  margin: 12px auto 0;
  height: 12px;
  width: 75%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  filter: blur(4px);
}

@media (prefers-color-scheme: dark) {
  .shadow {
    background: rgba(0, 0, 0, 0.3);
  }
}
