@font-face {
  font-family: "Playfair Display";
  font-weight: 600;
  font-display: swap;
  src: url("/playfair-display.woff2") format("woff2");
}

:root {
  --navy: #0a1530;
  --navy-deep: #050b1c;
  --gold: #d9a441;
  --gold-light: #f0c66b;
  --text: #f3ead7;
  --muted: #b9ad94;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--navy);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: radial-gradient(ellipse at 50% 30%, #13224a 0%, var(--navy) 55%, var(--navy-deep) 100%) fixed;
}

main {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: calc(1.5rem + env(safe-area-inset-top)) 16px calc(1.5rem + env(safe-area-inset-bottom));
  text-align: center;
}

.lion {
  width: min(78vw, 46vh, 380px);
  height: auto;
  /* Fade the artwork's dark edges into the navy page */
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 52%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 48%, #000 52%, transparent 71%);
}

h1 {
  margin: 0 0 1rem;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  color: var(--gold);
  letter-spacing: 0.01em;
}

button { font: inherit; cursor: pointer; }

.play {
  width: 104px;
  height: 104px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 60%, #b3822a);
  color: var(--navy);
  box-shadow: 0 6px 24px rgba(217, 164, 65, 0.35), inset 0 -3px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.12s ease;
}
.play:active { transform: scale(0.95); }
.play:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
.play svg { width: 46px; height: 46px; fill: currentColor; grid-area: 1 / 1; }
.play .icon-pause { display: none; }
.play.is-on .icon-play { display: none; }
.play.is-on .icon-pause { display: block; }
.play.is-busy { animation: pulse 1.4s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 164, 65, 0.55); }
  50% { box-shadow: 0 0 0 16px rgba(217, 164, 65, 0); }
}

.status {
  margin: 0.4rem 0 1rem;
  min-height: 1.5em;
  font-size: 1.05rem;
  color: var(--muted);
}
.status.is-live { color: var(--gold-light); }
.status.is-live::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: var(--gold-light);
  vertical-align: 0.08em;
}

.share {
  min-width: 140px;
  padding: 0.7rem 1.6rem;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font-size: 1rem;
}
.share:active { background: rgba(217, 164, 65, 0.12); }

.install {
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 0.9rem;
  text-decoration: underline;
  padding: 0.5rem;
}

.note {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.88rem;
  color: var(--muted);
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .play.is-busy { animation: none; opacity: 0.8; }
}
