:root {
  --bg-top: #2f241d;
  --bg-bottom: #6f4d36;
  --ink: #2c2019;
  --muted: #624a3a;
  --accent: #c96f40;
  --accent-dark: #9f4d29;
  --cream: #f3e9da;
  --paper: #f8f2e9;
  --card-border: #d5bfaa;
  --ticket: #efe0cd;
  --shadow: 0 20px 45px rgba(20, 12, 8, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--cream);
  background: radial-gradient(circle at 50% -15%, rgba(250, 214, 164, 0.36), transparent 45%),
    linear-gradient(165deg, var(--bg-top), var(--bg-bottom));
  position: relative;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(circle at 2px 2px, #fff 0.8px, transparent 0);
  background-size: 14px 14px;
}

.ambient {
  position: fixed;
  width: min(46vw, 500px);
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
}

.ambient-left {
  left: -11rem;
  top: -9rem;
  background: rgba(248, 194, 138, 0.36);
}

.ambient-right {
  right: -13rem;
  bottom: -11rem;
  background: rgba(78, 101, 68, 0.25);
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem 2.4rem;
}

.card {
  width: min(720px, 100%);
  padding: clamp(1.35rem, 3.4vw, 2.7rem);
  border-radius: 1.5rem;
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.98), var(--paper));
  box-shadow: var(--shadow);
  color: var(--ink);
  animation: rise-in 550ms ease both;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.73rem;
  font-weight: 700;
  color: #735947;
}

h1 {
  margin: 0.48rem 0 0.55rem;
  font-family: "Fraunces", serif;
  font-size: clamp(2.05rem, 6vw, 3.05rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.3vw, 1.12rem);
  max-width: 56ch;
  line-height: 1.58;
}

button {
  margin-top: 1.65rem;
  border: 0;
  border-radius: 999px;
  padding: 0.92rem 1.45rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(142, 74, 41, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(142, 74, 41, 0.4);
}

button:active {
  transform: translateY(1px);
  box-shadow: 0 7px 14px rgba(142, 74, 41, 0.31);
}

.result {
  margin-top: 1.4rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(239, 224, 205, 0.72));
  transition: transform 220ms ease, opacity 220ms ease;
}

.result.is-refreshing {
  opacity: 0.65;
  transform: translateY(6px);
}

.result h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.35rem, 3vw, 1.56rem);
}

.result p {
  margin: 0.42rem 0 0;
  line-height: 1.55;
  color: #543d2f;
}

.copy-address {
  margin-top: 0.8rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #6f3a22;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #c79f84;
  box-shadow: none;
}

.copy-address:hover {
  box-shadow: none;
  transform: translateY(-1px);
}

.copy-address:active {
  box-shadow: none;
  transform: translateY(0);
}

.footnote {
  margin: 1.1rem 0 0;
  font-size: 0.82rem;
  color: #7a6251;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  .shell {
    padding: 1.2rem 0.95rem 1.5rem;
  }

  .card {
    border-radius: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .result,
  button {
    animation: none;
    transition: none;
  }
}
