@import url('https://fonts.googleapis.com/css2?family=Padauk:wght@400;700&display=swap');

:root {
  color-scheme: dark;
  --black: #080706;
  --gold: #d7b66a;
  --gold-light: #fff0bd;
  --muted: #aaa39a;
  font-family: "Padauk", "Noto Sans Myanmar", "Myanmar Text", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: #f5f0e7;
}

.stage {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 2rem 1.25rem 5rem;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(123, 91, 36, .17), transparent 53%),
    linear-gradient(145deg, #11100e 0%, #080706 52%, #100d08 100%);
}

.stage::before {
  position: absolute;
  z-index: -1;
  inset: 1rem;
  border: 1px solid rgba(215, 182, 106, .17);
  content: "";
  pointer-events: none;
}

.ambient {
  position: absolute;
  z-index: -1;
  width: 18rem;
  aspect-ratio: 1;
  border: 1px solid rgba(215, 182, 106, .08);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(184, 139, 48, .06), inset 0 0 70px rgba(184, 139, 48, .04);
  animation: float 9s ease-in-out infinite alternate;
}

.ambient-one { top: -12rem; left: -9rem; }
.ambient-two { right: -12rem; bottom: -15rem; animation-delay: -4s; }

.reveal-card {
  width: min(100%, 54rem);
  padding: 3rem 1.25rem 2.5rem;
  text-align: center;
  animation: reveal 1.15s cubic-bezier(.2, .75, .2, 1) both;
}

.eyebrow, .footer-mark {
  color: var(--gold);
  font: 600 .7rem/1.5 Arial, sans-serif;
  letter-spacing: .27em;
}

.eyebrow { margin: 0 0 2.2rem; }
.eyebrow span { padding: 0 .45rem; color: var(--gold-light); }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin: 0 auto 1rem;
  color: var(--gold);
  font-size: .8rem;
}

.ornament span { width: 2.6rem; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament span:last-child { transform: rotate(180deg); }

h1 {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(2.45rem, 9vw, 5.8rem);
  font-weight: 700;
  line-height: 1.55;
  text-shadow: 0 0 28px rgba(226, 186, 92, .22), 0 3px 0 #755622;
  animation: glow 3.6s ease-in-out 1.1s infinite alternate;
}

.subtitle {
  margin: .6rem 0 2rem;
  color: #ded5c3;
  font-size: clamp(1.05rem, 4vw, 1.45rem);
}

.visitor-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1.8rem;
  padding: .8rem 1.2rem;
  border: 1px solid rgba(215, 182, 106, .32);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 240, 189, .055), rgba(169, 125, 47, .08));
  box-shadow: inset 0 1px rgba(255, 240, 189, .035), 0 10px 35px rgba(0, 0, 0, .18);
  text-align: left;
}

.visitor-icon {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 7px rgba(215, 182, 106, .2));
}

.visitor-counter-copy { min-width: 0; }
.visitor-label { margin: 0; color: var(--gold); font-size: .9rem; line-height: 1.45; }
.visitor-total { margin: .05rem 0 0; color: var(--gold-light); font-size: clamp(1rem, 3.7vw, 1.25rem); font-weight: 700; line-height: 1.55; }
#visitor-count { font: 700 1.35em/1 Arial, sans-serif; letter-spacing: .015em; text-shadow: 0 0 16px rgba(226, 186, 92, .22); }
.visitor-status { margin: .1rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-width: 10rem;
  min-height: 3.15rem;
  padding: .65rem 1.5rem;
  border: 1px solid #d7b66a;
  border-radius: 999px;
  background: linear-gradient(135deg, #e6c879, #ae8538);
  color: #171109;
  font: 700 1rem/1.4 "Padauk", "Noto Sans Myanmar", sans-serif;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(208, 165, 76, .17);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.share-button:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(208, 165, 76, .3); filter: brightness(1.06); }
.share-button:active { transform: translateY(0); }
.share-button:focus-visible { outline: 3px solid #fff0bd; outline-offset: 4px; }
.share-icon { font: 700 1.25rem/1 Arial, sans-serif; }

.share-status { min-height: 1.5em; margin: .7rem 0 0; color: var(--gold-light); font-size: .9rem; }
.signature { margin: 2.8rem 0 0; color: var(--muted); font: italic .85rem/1.5 Georgia, serif; letter-spacing: .05em; }
.footer-mark { position: absolute; bottom: 1.2rem; margin: 0; font-size: .58rem; letter-spacing: .2em; opacity: .7; }
.footer-mark span { padding: 0 .45rem; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(1.2rem) scale(.98); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes glow { from { text-shadow: 0 0 18px rgba(226, 186, 92, .16), 0 3px 0 #755622; } to { text-shadow: 0 0 34px rgba(255, 220, 130, .36), 0 3px 0 #755622; } }
@keyframes float { to { transform: translate3d(1rem, 1.5rem, 0) scale(1.06); } }

@media (min-width: 700px) {
  .stage { padding: 3rem 2rem 5rem; }
  .stage::before { inset: 2rem; }
  .reveal-card { padding: 4rem 2rem 3rem; }
  .eyebrow { margin-bottom: 3rem; }
  .subtitle { margin-bottom: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
