:root {
  --bg: #0d0b0e;
  --surface: #1a161b;
  --surface-2: #241e25;
  --text: #f3eef2;
  --muted: #b9adb6;
  --dim: #8f838c;
  --lotus: #ff8fc7;
  --lotus-deep: #e85d9f;
  --lotus-pale: #ffc2df;
  --line: #3a3139;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.75rem;
  border-radius: 2px;
  background: var(--lotus);
}

a {
  color: var(--lotus);
}

:focus-visible {
  outline: 3px solid var(--lotus-pale);
  outline-offset: 3px;
}

.lede {
  color: var(--muted);
  margin: 1rem 0 2rem;
}

.section {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}

/* Hero */

.hero {
  padding: 4.5rem 0 4rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 143, 199, 0.14), transparent 60%);
}

.hero-lotus {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 1.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 15vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.bloom-word {
  color: var(--lotus);
}

.subline {
  margin: 1.5rem 0 0;
  font-size: 1.2rem;
  color: var(--muted);
}

/* Doom to Bloom */

.widget {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.takes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.take + .take {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.take p {
  margin: 0;
}

.doom {
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.3;
}

.bloom {
  margin-top: 1rem !important;
  font-size: 1.15rem;
  color: var(--lotus-pale);
}

.label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.bloom .label {
  color: var(--lotus);
}

/* JS-enhanced widget: one take at a time, reframe revealed on bloom. */

.widget[data-ready] .take {
  display: none;
  min-height: 9.5rem;
}

.widget[data-ready] .take.is-current {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.widget[data-ready] .take .bloom {
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.widget[data-ready] .take.is-bloomed .bloom {
  opacity: 1;
  transform: none;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.controls[hidden] {
  display: none;
}

.counter {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--dim);
}

.btn {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--lotus);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-bloom,
.btn-join {
  background: var(--lotus);
  color: #1a0d14;
}

.btn-bloom:hover,
.btn-join:hover {
  background: var(--lotus-pale);
  border-color: var(--lotus-pale);
}

.btn-bloom:disabled {
  opacity: 0.55;
  cursor: default;
}

.btn-next {
  background: transparent;
  color: var(--lotus);
}

.btn-next:hover {
  background: var(--surface-2);
}

.burst {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.petal {
  position: absolute;
  left: -0.45rem;
  top: -0.9rem;
  width: 0.9rem;
  height: 1.8rem;
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  background: var(--lotus);
  transform-origin: 50% 100%;
  animation: petal 0.9s ease-out forwards;
}

.petal:nth-child(even) {
  background: var(--lotus-pale);
}

.petal:nth-child(3n) {
  background: var(--lotus-deep);
}

@keyframes petal {
  from {
    opacity: 1;
    transform: rotate(var(--a)) translateY(0) scale(0.3);
  }
  to {
    opacity: 0;
    transform: rotate(var(--a)) translateY(-7rem) scale(1);
  }
}

/* The Kitchen */

.menu {
  display: grid;
  gap: 1.5rem;
}

.special {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--lotus);
  background: linear-gradient(160deg, rgba(255, 143, 199, 0.12), transparent 70%), var(--surface);
}

.special-tag,
.refused-tag {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lotus);
}

.special h3 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.special p {
  margin: 0;
}

.special .price {
  margin-top: 0.75rem;
}

.price {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

.menu-list {
  margin: 0;
}

.item {
  padding: 1rem 0;
  border-bottom: 1px dashed var(--line);
}

.item:first-child {
  padding-top: 0;
}

.item dt {
  font-weight: 700;
  font-size: 1.1rem;
}

.item dt .price {
  margin-left: 0.4rem;
  font-size: 0.95rem;
}

.item dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.refused {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border: 2px dashed var(--dim);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.refused p {
  margin: 0;
}

.refused-tag {
  color: var(--dim);
}

.refused-item {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: line-through;
  text-decoration-color: var(--lotus);
  text-decoration-thickness: 3px;
  margin-bottom: 0.35rem !important;
}

/* House Rules */

.rules {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.rules li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
}

.rules strong {
  color: var(--lotus);
}

.incomplete {
  margin: 1.25rem 0 0;
  font-style: italic;
  color: var(--dim);
}

/* Footer */

.footer {
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-line {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.fine {
  margin: 2rem 0 0;
  font-size: 0.9rem;
  color: var(--dim);
}

@media (min-width: 48rem) {
  body {
    font-size: 1.125rem;
  }

  .hero {
    padding: 7rem 0 6rem;
  }

  .section {
    padding: 6rem 0;
  }

  h2 {
    font-size: 2.6rem;
  }

  .widget {
    padding: 2.25rem;
  }

  .doom {
    font-size: 1.6rem;
  }

  .special {
    padding: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .petal {
    display: none;
    animation: none;
  }

  .widget[data-ready] .take .bloom {
    transition: none;
    transform: none;
  }
}
