:root {
  --bg: #f5f4ef;
  --card: rgba(255, 255, 255, 0.78);
  --card-border: rgba(95, 111, 61, 0.18);
  --text: #344022;
  --muted: #5b6546;
  --accent: #5f6f3d;
  --accent-dark: #43502c;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(49, 59, 32, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
}

body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0.42));
  pointer-events: none;
  z-index: 0;
}

.page-bg,
.page-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-bg {
  background-image: url("./assets/background.png");
  background-size: cover;
  background-position: center;
  filter: saturate(0.9);
  z-index: -2;
}

.page-overlay {
  background: linear-gradient(180deg, rgba(244, 244, 238, 0.62) 0%, rgba(244, 244, 238, 0.84) 50%, rgba(244, 244, 238, 0.94) 100%);
  z-index: -1;
}

.shell {
  width: min(92vw, 760px);
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero-header {
  text-align: center;
  margin-bottom: 22px;
}

.brand-logo {
  width: min(220px, 48vw);
  height: auto;
  display: block;
  margin: 0 auto 18px;
  filter: drop-shadow(0 6px 20px rgba(50, 60, 33, 0.18));
}

.date {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  text-transform: capitalize;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 500;
  line-height: 1.08;
}

.subtitle {
  margin: 12px auto 0;
  max-width: 32ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.7vw, 1.2rem);
}

.fortune-card {
  backdrop-filter: blur(14px);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px 22px;
  text-align: center;
}

.cookie-wrap {
  width: min(100%, 290px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.66) 0%, rgba(243, 239, 228, 0.66) 55%, rgba(218, 199, 167, 0.28) 100%);
  box-shadow: inset 0 8px 25px rgba(255, 255, 255, 0.58), 0 14px 30px rgba(90, 71, 32, 0.08);
}

.cookie-image {
  width: min(70%, 220px);
  height: auto;
  transition: transform 300ms ease;
}

.cookie-image.revealed {
  transform: scale(1.03) rotate(-3deg);
}

.primary-btn,
.secondary-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  background: var(--accent);
  color: var(--white);
  font-size: 1rem;
  padding: 14px 28px;
  min-width: 220px;
  box-shadow: 0 10px 24px rgba(95, 111, 61, 0.26);
}

.secondary-btn {
  background: rgba(95, 111, 61, 0.1);
  color: var(--accent-dark);
  padding: 11px 18px;
  font-size: 0.96rem;
}

.fortune-panel {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(95, 111, 61, 0.16);
}

.is-hidden {
  display: none;
}

.fortune-label {
  margin: 0 0 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--muted);
}

.fortune-text {
  margin: 0 auto;
  max-width: 28ch;
  font-size: clamp(1.16rem, 3vw, 1.6rem);
  line-height: 1.5;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.share-note {
  margin: 14px auto 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  text-align: center;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer a {
  color: var(--accent-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .shell {
    width: min(94vw, 760px);
    padding-top: 20px;
  }

  .fortune-card {
    padding: 20px 16px 18px;
  }

  .cookie-wrap {
    width: min(100%, 250px);
  }

  .primary-btn {
    width: 100%;
  }

  .share-actions {
    flex-direction: column;
  }

  .secondary-btn {
    width: 100%;
  }
}
