/* R&D / reveal page */

.rnd-hero { padding-bottom: 0.4rem; }
.rnd-hero h1 { max-width: 18ch; }
.rnd-sub {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: var(--grey-l);
  margin: -0.25rem 0 1.2rem;
}
.rnd-reveal-section { padding-top: 1.2rem; }
.rnd-reveal-wrap { max-width: 720px; }
.rnd-reveal-lede { margin-bottom: 1.8rem; }

.rnd-stage {
  position: relative;
  margin: 0 auto 2.2rem;
  max-width: 360px;
}

.rnd-mystery {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 2rem 1.25rem 1.4rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(246, 51, 4, 0.1), transparent 55%),
    var(--panel);
  overflow: hidden;
}

/* CSS-only mystery crate: blurred silhouette + question mark. No images. */
.rnd-box {
  position: absolute;
  inset: 16% 18% 26%;
  filter: blur(8px);
  pointer-events: none;
}
.rnd-box-lid,
.rnd-box-body {
  display: block;
  position: absolute;
  left: 0; right: 0;
  background: #2c2c2c;
}
.rnd-box-lid {
  top: 0;
  height: 28%;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #5a5a5a, #2e2e2e);
  transform: perspective(200px) rotateX(18deg);
  transform-origin: bottom center;
  box-shadow: 0 0 24px rgba(246, 51, 4, 0.18);
}
.rnd-box-body {
  top: 26%;
  bottom: 0;
  border-radius: 6px 6px 12px 12px;
  background: linear-gradient(180deg, #3a3a3a, #1c1c1c 70%);
}

.rnd-q {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 6.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
  text-shadow: 0 0 36px var(--glow);
  animation: rnd-pulse 2.8s ease-in-out infinite;
}
.rnd-mystery-caption {
  position: relative;
  z-index: 1;
  margin: 1.4rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes rnd-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .rnd-q { animation: none; }
  .rnd-bar-fill { transition: none !important; }
}

.rnd-revealed {
  margin: 0;
  text-align: center;
}
.rnd-revealed img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 0 40px rgba(246, 51, 4, 0.2);
}
.rnd-revealed figcaption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.rnd-image-fallback {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--muted);
}
.rnd-stage.is-revealed .rnd-mystery { display: none; }
.rnd-stage.is-fallback .rnd-mystery { display: none; }

/* Progress */
.rnd-progress { margin-top: 0.5rem; }
.rnd-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.55rem;
}
.rnd-progress-label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
}
.rnd-progress-pct {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--orange);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.rnd-bar {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: #101010;
  border: 1px solid var(--line);
  overflow: hidden;
}
.rnd-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #c42803, var(--orange));
  box-shadow: 0 0 18px var(--glow);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.rnd-milestones {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.rnd-milestones li {
  margin: 0;
  font-size: 0.78rem;
  color: var(--grey-m);
  line-height: 1.35;
}
.rnd-milestones li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-l);
  margin-bottom: 0.15rem;
}
.rnd-milestones li.is-done { color: var(--muted); }
.rnd-milestones li.is-done strong { color: var(--orange); }
.rnd-milestones li.is-current strong { color: var(--white); }
.rnd-updated {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--grey-m);
}

@media (max-width: 560px) {
  .rnd-hero h1 { max-width: none; font-size: 1.85rem; }
  .rnd-q { font-size: 5.2rem; }
  .rnd-mystery { min-height: 280px; }
  .rnd-milestones { grid-template-columns: 1fr 1fr; }
}

/* Notify form */
.rnd-notify-section { padding-top: 0.5rem; }
.rnd-notify-panel { max-width: 720px; }
.rnd-notify-panel .consent label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}
.rnd-status {
  display: none;
  margin: 0 0 1.15rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  scroll-margin-top: 6rem;
  scroll-margin-bottom: calc(var(--sticky-h, 64px) + env(safe-area-inset-bottom, 0px) + 1.25rem);
}
.rnd-status.show { display: block; }
.rnd-status p { margin: 0; }
.rnd-status.is-ok,
.rnd-status:has(.form-ok) {
  border: 1px solid #3fa85a;
  background: rgba(47, 138, 68, 0.22);
  color: #c8f5ce;
}
.rnd-status.is-ok .form-ok,
.rnd-status .form-ok { color: #c8f5ce; }
.rnd-status.is-err,
.rnd-status:has(.form-err) {
  border: 1px solid rgba(255, 180, 162, 0.7);
  background: rgba(154, 27, 0, 0.28);
  color: #ffd4c8;
}
.rnd-status.is-err .form-err,
.rnd-status .form-err { color: #ffd4c8; }
.rnd-status a { color: inherit; text-decoration: underline; }
.rnd-form.is-sent .rnd-form-body[hidden] { display: none; }
.rnd-form .field.invalid input {
  border-color: var(--orange);
}

/* Mystery crate image (no product info) */
.rnd-mystery-img{display:block;width:100%;height:auto;border-radius:14px;}

.rnd-form .consent { margin: 0.35rem 0; }
.rnd-form .consent-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.4rem 0 1rem;
}
.rnd-form .field.invalid .consent input {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
