:root {
  --bg: #050505;
  --gold-soft: rgba(255, 210, 31, .24);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--bg);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

body { min-height: 100svh; color: white; }

.app-shell {
  width: 100vw;
  height: 100svh;
  display: grid;
  place-items: center;
  background: #050505;
  cursor: pointer;
}

.phone-safe {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

/* Full bleed cover — landscape image fills the whole screen */
.splash-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transform: scale(.98);
  animation: intro 900ms cubic-bezier(.16, 1, .3, 1) 90ms forwards,
             breathe 6s ease-in-out 1100ms infinite;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-drag: none;
}

.ambient {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0;
}

.ambient-one {
  width: 400px; height: 400px;
  bottom: -10%; left: 50%;
  transform: translateX(-50%);
  background: var(--gold-soft);
  animation: glow 3.8s ease-in-out .45s infinite;
}

.ambient-two {
  width: 300px; height: 300px;
  top: -5%; left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 210, 31, .1);
  animation: glow 4.4s ease-in-out .8s infinite reverse;
}

.shine {
  position: absolute;
  z-index: 3;
  inset: -20% auto -20% -20%;
  width: 18%;
  transform: rotate(8deg) translateX(-150%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  filter: blur(16px);
  animation: sweep 6s ease-in-out 1.5s infinite;
  pointer-events: none;
}

.tap-hint { display: none; }

.app-shell.exit .splash-art,
.app-shell.exit .ambient,
.app-shell.exit .shine {
  animation: exit 520ms cubic-bezier(.7, 0, .84, 0) forwards;
}

@keyframes intro {
  to { opacity: 1; transform: scale(1); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.012); }
}
@keyframes glow {
  0%, 100% { opacity: .3; transform: translateX(-50%) scale(.95); }
  50%       { opacity: .7; transform: translateX(-50%) scale(1.05); }
}
@keyframes sweep {
  0%, 40%   { transform: rotate(8deg) translateX(-150%); opacity: 0; }
  55%        { opacity: .5; }
  75%, 100%  { transform: rotate(8deg) translateX(800%); opacity: 0; }
}
@keyframes exit {
  to { opacity: 0; transform: scale(.99); filter: blur(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-art, .ambient, .shine { animation: none; opacity: 1; transform: none; }
  .shine { display: none; }
}

/* ── FOOTER ── */
.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  flex-wrap: wrap;
}

.footer-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-link:hover {
  color: #FFD21F;
}

.footer-dot {
  color: rgba(255,255,255,0.2);
  font-size: 12px;
}

.footer-appstore {
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 5px 12px;
  transition: border-color 0.2s, color 0.2s;
}

.footer-appstore:hover {
  border-color: #FFD21F;
  color: #FFD21F;
}
