/* Appily Sixteen — Bloom Route track & support */

.page-bloom-route .page-main { background: var(--cream, #FFF8F0); }

/* Hero */
.br-hero {
  position: relative;
  padding: 52px 0 48px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff8f0 0%, #ffe8e8 45%, #e8f5e9 100%);
}
.br-hero-petals {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    radial-gradient(circle at 15% 30%, rgba(211, 47, 47, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(104, 159, 56, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255, 143, 0, 0.12) 0%, transparent 35%);
  pointer-events: none;
}
.br-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}
.br-kicker {
  font-family: var(--script, 'Marck Script', cursive);
  color: var(--green, #689F38);
  font-size: 1.4rem;
  margin: 0 0 8px;
}
.br-hero-copy h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.15;
  color: var(--ink);
}
.br-hero-copy h1 em { font-style: normal; color: var(--red, #D32F2F); }
.br-lede {
  color: var(--ink-soft);
  margin: 0;
  max-width: 46ch;
  font-size: 0.95rem;
}

/* Pulse beacon */
.br-pulse {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
}
.br-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.br-pulse.is-idle .br-pulse-ring { border-color: var(--line); }
.br-pulse.is-found .br-pulse-ring {
  border-color: var(--green);
  box-shadow: 0 0 0 8px rgba(104, 159, 56, 0.15), 0 12px 40px rgba(0, 0, 0, 0.1);
}
.br-pulse.is-miss .br-pulse-ring {
  border-color: var(--red);
  box-shadow: 0 0 0 8px rgba(211, 47, 47, 0.12);
}
.br-pulse-core {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}
.br-pulse.is-found .br-pulse-core { background: var(--green); }
.br-pulse.is-miss .br-pulse-core { background: #888; }
.br-pulse-label {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.br-pulse-code {
  position: absolute;
  top: 18px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* Floor layout */
.br-floor { padding: 40px 0 72px; }
.br-floor-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}

/* Claim ticket form */
.br-ticket {
  background: #fff;
  border-radius: 16px;
  border: 2px dashed var(--red);
  padding: 28px 28px 24px;
  position: relative;
  box-shadow: 0 8px 32px rgba(211, 47, 47, 0.08);
}
.br-ticket-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.br-ticket-hole {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--cream);
  flex-shrink: 0;
  margin-top: 4px;
}
.br-ticket-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.br-ticket-head h2 {
  margin: 2px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
}
.br-ticket-stamp {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border: 2px solid var(--green);
  padding: 4px 10px;
  border-radius: 4px;
  transform: rotate(-8deg);
}
.br-ticket-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.br-field { margin-bottom: 16px; }
.br-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--ink);
}
.br-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.br-field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(104, 159, 56, 0.15);
  background: #fff;
}
.br-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.br-btn {
  display: inline-block;
  padding: 12px 22px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.br-btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.br-btn-primary:hover { background: #b71c1c; border-color: #b71c1c; }
.br-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.br-btn-ghost:hover { border-color: var(--red); color: var(--red); }
.br-btn-wide { width: 100%; margin-top: 8px; }
.br-ticket-perforation {
  height: 8px;
  margin-top: 24px;
  background: repeating-linear-gradient(90deg, var(--line) 0, var(--line) 6px, transparent 6px, transparent 12px);
  opacity: 0.6;
}

/* Garden shed sidebar */
.br-shed {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 22px;
}
.br-shed-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 16px;
}
.br-shed-links { display: flex; flex-direction: column; gap: 10px; }
.br-shed-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.br-shed-tile:hover {
  border-color: var(--green);
  transform: translateX(4px);
}
.br-shed-icon { font-size: 1.2rem; }
.br-shed-tile strong {
  display: block;
  font-size: 0.85rem;
}
.br-shed-tile small {
  font-size: 0.72rem;
  color: var(--muted);
}

/* Reveal panel */
.br-reveal { margin-top: 8px; }

.br-wrap {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 28px 32px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.br-wrap-hit { border-top: 4px solid var(--green); }
.br-wrap-miss { text-align: center; padding: 48px 32px; }
.br-wrap-ribbon {
  position: absolute;
  top: 0;
  right: 32px;
  width: 24px;
  height: 48px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  opacity: 0.85;
}
.br-wrap-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.br-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}
.br-tag-ok { background: #e8f5e9; color: #2e7d32; }
.br-tag-warn { background: #ffebee; color: var(--red); }
.br-status-pill {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--cream);
  padding: 6px 12px;
  border-radius: 999px;
}
.br-order-id {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  font-family: ui-monospace, monospace;
}
.br-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
}
.br-stats div {
  background: var(--cream);
  border-radius: 10px;
  padding: 14px 16px;
}
.br-stats dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.br-stats dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

/* Stem vine timeline */
.br-stem-path { margin-bottom: 24px; }
.br-stem-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 16px;
}
.br-stem-vine {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.br-stem-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.br-stem-leaf {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.br-stem-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}
.br-stem-node.is-done .br-stem-icon {
  background: #e8f5e9;
  border-color: var(--green);
}
.br-stem-node.is-current .br-stem-icon {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(104, 159, 56, 0.25);
  animation: br-pulse-node 2s ease infinite;
}
.br-stem-line {
  position: absolute;
  top: 22px;
  left: calc(50% + 22px);
  width: calc(100% - 22px);
  height: 3px;
  background: var(--line);
  z-index: 0;
}
.br-stem-node.is-done .br-stem-line { background: var(--green); }
.br-stem-copy { margin-top: 10px; }
.br-stem-stop {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.br-stem-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2px;
}
.br-stem-node.is-current .br-stem-label { color: var(--green); }

@keyframes br-pulse-node {
  0%, 100% { box-shadow: 0 0 0 4px rgba(104, 159, 56, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(104, 159, 56, 0.12); }
}

.br-wilt { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.br-wrap-miss h3 { margin: 8px 0; }
.br-wrap-miss p { color: var(--muted); margin: 0 0 20px; }

.br-idle {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border-radius: 16px;
  border: 2px dashed var(--line);
}
.br-idle-vase {
  position: relative;
  width: 80px;
  height: 100px;
  margin: 0 auto 20px;
  background: linear-gradient(180deg, transparent 40%, #e8e0d8 40%, #d7ccc8 100%);
  border-radius: 0 0 20px 20px;
  border: 2px solid var(--line);
  border-top: none;
}
.br-idle-stems {
  position: absolute;
  bottom: 60%;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 40px;
  background: var(--green);
  border-radius: 2px;
}
.br-idle-stems::before,
.br-idle-stems::after {
  content: '';
  position: absolute;
  top: -8px;
  width: 12px;
  height: 12px;
  border-radius: 50% 50% 50% 0;
  background: rgba(211, 47, 47, 0.4);
}
.br-idle-stems::before { left: -10px; transform: rotate(-30deg); }
.br-idle-stems::after { right: -10px; transform: rotate(30deg); }
.br-idle-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(104, 159, 56, 0.2), transparent);
  animation: br-scan 2.5s ease infinite;
}
@keyframes br-scan {
  0%, 100% { transform: translateY(-100%); opacity: 0; }
  50% { transform: translateY(100%); opacity: 1; }
}
.br-idle p { color: var(--muted); margin: 0; font-size: 0.92rem; }

@media (max-width: 900px) {
  .br-hero-grid,
  .br-floor-grid { grid-template-columns: 1fr; }
  .br-stem-vine { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .br-stem-line { display: none; }
  .br-stats { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .br-stem-vine { grid-template-columns: 1fr; }
}
