/* The Blind Box (/blind-box): the maison's quiet layout, with one playful moment (the shake). */

/* ---------- Hero ---------- */
.bb-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(calc(100svh - 110px), 900px); }
.bb-hero-copy { align-self: center; padding: clamp(48px, 8vw, 120px) clamp(32px, 6vw, 110px) clamp(48px, 8vw, 120px) max(var(--gutter), calc((100vw - 1240px) / 2 + 28px)); }
.bb-hero h1 { font-size: clamp(3.6rem, 6.6vw, 6.6rem); line-height: .94; margin: 0 0 30px; }
.bb-hero .lx-lead { max-width: 30em; margin-bottom: 28px; }
.bb-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0 0 32px; }
.bb-price > span:first-child { font-family: var(--f-display); font-size: 2rem; }
.bb-price > span + span { font: var(--lx-caps); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.bb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-bottom: 30px; }
.bb-odds-line { font-size: .82rem; color: var(--ink-3); margin: 0; }
.bb-hero-media { margin: 0; position: relative; overflow: hidden; background: #efe6dc; }
.bb-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- The shake ---------- */
.bb-sub { max-width: 34em; margin: 18px auto 0; color: var(--ink-2); line-height: 1.7; }
.bb-stage { position: relative; display: grid; place-items: center; min-height: clamp(380px, 46vw, 520px); }
.bb-box { position: relative; z-index: 1; width: clamp(240px, 30vw, 360px); aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px; transform-origin: 50% 85%;
  transition: transform .9s var(--ease), opacity .6s var(--ease), filter .6s; }
.bb-box img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 4px; box-shadow: 0 40px 70px -40px rgba(35, 28, 43, .55); }
.bb-box::after { content: "Press to shake"; position: absolute; left: 50%; bottom: -46px; translate: -50% 0; white-space: nowrap; font: var(--lx-caps); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); transition: opacity .4s; }
.bb-box:hover { transform: rotate(-1.5deg) translateY(-4px); }
.bb-box:focus-visible { outline: 2px solid var(--lilac-deep); outline-offset: 10px; }
.bb-stage[data-state="shaking"] .bb-box { animation: bb-shake 1.5s cubic-bezier(.36, .07, .19, .97) both; }
.bb-stage[data-state="shaking"] .bb-box::after, .bb-stage[data-state="open"] .bb-box::after { opacity: 0; }
.bb-stage[data-state="open"] .bb-box { opacity: 0; transform: scale(.82) translateY(30px); pointer-events: none; }
@keyframes bb-shake {
  0% { transform: none; }
  8% { transform: rotate(-4deg) translateX(-6px); } 16% { transform: rotate(4deg) translateX(6px); }
  24% { transform: rotate(-5deg) translateX(-7px); } 32% { transform: rotate(5deg) translateX(7px); }
  40% { transform: rotate(-3deg) translateX(-4px); } 48% { transform: rotate(3deg) translateX(4px); }
  56% { transform: translateY(-14px) scale(1.03); } 64% { transform: translateY(0) scale(.98, 1.02); }
  72% { transform: rotate(-2deg) translateX(-3px); } 80% { transform: rotate(2deg) translateX(3px); }
  100% { transform: translateY(-6px) scale(1.04); filter: brightness(1.08); }
}

/* the soft light that spills out */
.bb-glow { position: absolute; z-index: 0; width: min(520px, 90%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 246, 228, .95), rgba(214, 196, 240, .55) 45%, transparent 72%); opacity: 0; transform: scale(.6); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.bb-stage[data-state="shaking"] .bb-glow { opacity: .55; transform: scale(.85); transition-delay: .6s; }
.bb-stage[data-state="open"] .bb-glow { opacity: 1; transform: scale(1.08); }
.bb-stage[data-pick="secret"] .bb-glow { background: radial-gradient(closest-side, rgba(255, 239, 214, 1), rgba(184, 160, 230, .75) 45%, transparent 74%); }

.bb-sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.bb-sparkles i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--lilac-deep); opacity: 0; }
.bb-sparkles i:nth-child(even) { background: #e9c98f; width: 4px; height: 4px; }
.bb-stage[data-state="open"] .bb-sparkles i { animation: bb-spark 1.6s var(--ease) forwards; }
.bb-sparkles i:nth-child(1) { --x: -190px; --y: -150px; } .bb-sparkles i:nth-child(2) { --x: 170px; --y: -170px; animation-delay: .05s; }
.bb-sparkles i:nth-child(3) { --x: -230px; --y: 20px; animation-delay: .1s; } .bb-sparkles i:nth-child(4) { --x: 220px; --y: -20px; animation-delay: .08s; }
.bb-sparkles i:nth-child(5) { --x: -120px; --y: -220px; animation-delay: .12s; } .bb-sparkles i:nth-child(6) { --x: 110px; --y: -230px; animation-delay: .02s; }
.bb-sparkles i:nth-child(7) { --x: -200px; --y: 140px; animation-delay: .15s; } .bb-sparkles i:nth-child(8) { --x: 200px; --y: 150px; animation-delay: .1s; }
@keyframes bb-spark { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1); } }

.bb-reveal { position: absolute; z-index: 3; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 var(--gutter); animation: bb-in 1s var(--ease) both; }
.bb-reveal[hidden] { display: none; }
@keyframes bb-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.bb-reveal-art { width: clamp(170px, 20vw, 230px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center; margin-bottom: 26px; box-shadow: 0 30px 60px -34px rgba(35, 28, 43, .6), 0 0 0 1px rgba(35, 28, 43, .06); }
.bb-reveal-art img { width: 100%; height: 100%; object-fit: cover; }
.bb-reveal-art svg { width: 72%; height: auto; }
.bb-reveal-kicker { margin-bottom: 8px; }
.bb-stage[data-pick="secret"] .bb-reveal-kicker { color: var(--lilac-deep); }
.bb-reveal-name { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; margin: 0 0 14px; }
.bb-reveal-note { max-width: 28em; color: var(--ink-2); line-height: 1.7; margin: 0 0 26px; }
.bb-reveal-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; }
.bb-again { background: none; border: 0; padding: 0 0 6px; cursor: pointer; }
.bb-tally { text-align: center; margin: 22px 0 0; font: var(--lx-caps); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Odds ---------- */
.bb-odds { list-style: none; margin: 0 0 clamp(40px, 5vw, 64px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.bb-odds li { text-align: center; }
.bb-odds-art { display: block; aspect-ratio: 1; overflow: hidden; margin-bottom: 24px; }
.bb-odds-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
a.bb-odds-art:hover img { transform: scale(1.04); }
.bb-odds-secret { display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 40%, #efe7f8, #e2d7f0); }
.bb-silhouette { width: 58%; height: auto; filter: drop-shadow(0 18px 30px rgba(47, 37, 64, .35)); }
.bb-secret .bb-silhouette { animation: bb-peek 7s ease-in-out infinite; transform-origin: 50% 95%; }
@keyframes bb-peek { 0%, 78%, 100% { transform: none; } 84% { transform: rotate(-3deg); } 90% { transform: rotate(3deg); } 95% { transform: rotate(-1deg); } }
.bb-chance { font-family: var(--f-display); font-style: italic; font-size: 1.5rem; color: var(--lilac-deep); margin: 0 0 4px; }
.bb-odds h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; margin: 0 0 8px; }
.bb-odds li > p:not(.bb-chance) { color: var(--ink-2); margin: 0 0 18px; }
.bb-bar { display: block; width: 120px; height: 2px; margin: 0 auto; background: var(--line); position: relative; overflow: hidden; }
.bb-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--lilac-deep); }

/* ---------- Clues & details ---------- */
.bb-clues li p { font-family: var(--f-display); font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.3; margin: 0; }
.bb-list { margin: 0 0 28px; padding-left: 1.1em; line-height: 1.9; color: var(--ink-2); }
.bb-specs { margin: 0 0 36px; border-top: 1px solid var(--line); }
.bb-specs div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.bb-specs dt { font: var(--lx-caps); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.bb-specs dd { margin: 0; text-align: right; }
#faq .qa { margin-bottom: 0; }

@media (max-width: 900px) {
  .bb-hero { grid-template-columns: 1fr; min-height: 0; }
  .bb-hero-media { order: -1; aspect-ratio: 4 / 5; max-height: 70svh; }
  .bb-hero-copy { padding: 40px var(--gutter) 56px; text-align: center; }
  .bb-hero .lx-lead { margin-inline: auto; }
  .bb-price, .bb-actions { justify-content: center; }
  .bb-odds { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .bb-stage { min-height: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-stage[data-state="shaking"] .bb-box, .bb-sparkles i, .bb-secret .bb-silhouette, .bb-reveal { animation: none !important; }
  .bb-box, .bb-glow { transition: none; }
}
.bb-reveal-art { background: radial-gradient(70% 70% at 50% 40%, #efe7f8, #e2d7f0); }
