:root {
  --ink: #40212c;
  --muted: #765866;
  --cream: #fff8ef;
  --paper: rgba(255, 252, 247, 0.86);
  --peach: #f9786f;
  --peach-deep: #b93e5c;
  --peach-soft: #ffe0c7;
  --flor: #6d4fb3;
  --flor-deep: #49317e;
  --flor-soft: #eee5ff;
  --border: rgba(111, 55, 74, 0.12);
  --shadow: 0 24px 64px rgba(117, 55, 73, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  background: #fff2e7;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 190, 133, 0.55), transparent 28rem),
    radial-gradient(circle at 100% 26%, rgba(214, 183, 255, 0.36), transparent 24rem),
    linear-gradient(160deg, #fff9f1 0%, #fff3e9 48%, #fcecf0 100%);
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.45;
}

.orb-one {
  top: 14%;
  left: -80px;
  width: 180px;
  height: 180px;
  background: rgba(255, 160, 121, 0.22);
}

.orb-two {
  right: -70px;
  bottom: 8%;
  width: 220px;
  height: 220px;
  background: rgba(148, 109, 214, 0.14);
}

.spark {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: rgba(185, 62, 92, 0.3);
  transform: rotate(45deg);
}

.spark-one {
  top: 16%;
  right: 12%;
}

.spark-two {
  bottom: 24%;
  left: 7%;
  width: 6px;
  height: 6px;
}

.app-shell {
  position: relative;
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(34px + env(safe-area-inset-top, 0px)) 18px calc(28px + env(safe-area-inset-bottom, 0px));
}

.hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 2px 38px;
}

.hero-mark {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 21px;
  color: #fffaf5;
  background: linear-gradient(145deg, #ff9b76, #e75e6e 58%, #9e3d66);
  box-shadow: 0 13px 28px rgba(184, 63, 89, 0.25);
  transform: rotate(-3deg);
}

.hero-mark svg {
  width: 44px;
  height: 44px;
}

.eyebrow,
.category {
  color: var(--peach-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin-top: 1px;
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1;
}

h1 span {
  color: var(--peach);
}

.hero-copy {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 550;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 4px 12px;
}

.section-heading h2 {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.count {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.treat-card {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 238px;
  margin-bottom: 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card-art {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.peaches-art {
  background:
    radial-gradient(circle at 40% 28%, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(155deg, #ffd9b3, #ff9b83 54%, #ef7180);
}

.peaches-art::before,
.peaches-art::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
}

.peaches-art::before {
  right: -26px;
  bottom: -32px;
  width: 110px;
  height: 110px;
}

.peaches-art::after {
  top: 24px;
  left: 21px;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.26);
}

.peach {
  position: absolute;
  width: 72px;
  height: 76px;
  border-radius: 48% 52% 50% 50% / 43% 43% 57% 57%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(140deg, #ffbf81, #ff7d68 56%, #e34d68);
  box-shadow:
    inset -8px -10px 14px rgba(181, 49, 81, 0.16),
    0 16px 28px rgba(156, 59, 77, 0.22);
}

.peach::after {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 2px;
  height: 54px;
  border-radius: 999px;
  background: rgba(190, 64, 77, 0.25);
  content: "";
}

.peach-back {
  top: 60px;
  left: 12px;
  opacity: 0.7;
  transform: rotate(-18deg) scale(0.76);
}

.peach-front {
  top: 91px;
  left: 43px;
  transform: rotate(9deg);
}

.leaf {
  position: absolute;
  top: 68px;
  left: 67px;
  z-index: 2;
  width: 39px;
  height: 39px;
  transform: rotate(9deg);
}

.leaf path:first-child {
  fill: #5f9149;
}

.leaf path:last-child {
  stroke: #3e713a;
  stroke-linecap: round;
  stroke-width: 2;
}

.flor-art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 48% 45%, rgba(255, 255, 255, 0.62), transparent 38%),
    linear-gradient(155deg, #f0dcff, #c3a1e9 55%, #8060bc);
}

.flor-art::before {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  content: "";
}

.flower {
  position: relative;
  z-index: 1;
  width: 102px;
  height: 102px;
  filter: drop-shadow(0 13px 18px rgba(74, 43, 122, 0.25));
}

.flower ellipse {
  fill: #fff6e4;
}

.flower circle {
  fill: #f09a57;
}

.card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.flor-card .category {
  color: var(--flor);
}

.card-title-row h3 {
  margin-top: 1px;
  font-size: 1.65rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.alias {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--peach-deep);
  background: var(--peach-soft);
  font-size: 0.64rem;
  font-weight: 750;
}

.flor-card .alias {
  color: var(--flor-deep);
  background: var(--flor-soft);
}

.description {
  max-width: 44ch;
  margin: 10px 0 17px;
  color: var(--muted);
  font-size: 0.85rem;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.action {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 17px;
  padding: 10px 13px;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.action:active {
  transform: scale(0.98);
}

.action:focus-visible {
  outline: 3px solid rgba(70, 43, 110, 0.28);
  outline-offset: 3px;
}

.action span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.action strong {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action small {
  margin-top: 1px;
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.72;
}

.action svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

.action svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.action-primary {
  color: white;
  box-shadow: 0 10px 20px rgba(92, 45, 70, 0.16);
}

.action-peach {
  background: linear-gradient(135deg, var(--peach), var(--peach-deep));
}

.action-flor {
  background: linear-gradient(135deg, #8060bd, var(--flor-deep));
}

.action-secondary {
  border-color: var(--border);
  color: var(--flor-deep);
  background: rgba(255, 255, 255, 0.75);
}

footer {
  padding: 15px 8px 2px;
  color: var(--muted);
  text-align: center;
}

footer p {
  font-size: 0.78rem;
  font-weight: 650;
}

#version-label {
  display: block;
  margin-top: 5px;
  font-size: 0.64rem;
  opacity: 0.66;
}

@media (hover: hover) {
  .action:hover {
    transform: translateY(-2px);
  }

  .action-primary:hover {
    box-shadow: 0 14px 28px rgba(92, 45, 70, 0.22);
  }

  .action-secondary:hover {
    background: white;
  }
}

@media (max-width: 580px) {
  .app-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero {
    margin-bottom: 31px;
  }

  .treat-card {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 244px;
    border-radius: 24px;
  }

  .card-body {
    padding: 18px 16px;
  }

  .card-title-row {
    display: block;
  }

  .alias {
    display: inline-block;
    margin-top: 7px;
  }

  .peach-back {
    top: 64px;
    left: 1px;
  }

  .peach-front {
    top: 103px;
    left: 27px;
  }

  .leaf {
    top: 79px;
    left: 49px;
  }

  .flower {
    width: 86px;
    height: 86px;
  }
}

@media (max-width: 420px) {
  .action-grid {
    grid-template-columns: 1fr;
  }

  .flor-card {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .action {
    transition: none;
  }
}
