/* Hi Dood — the genesis edition product page (book page). Needs styles.css; store.css styles the hydrated widget. */
.tape { position: absolute; left: -4%; right: -4%; top: 34px; transform: rotate(-1.5deg); background: var(--sun); border-block: var(--line); overflow: hidden; }
.tape-run { display: flex; gap: 0; width: max-content; animation: tape 40s linear infinite; }
.tape-run span { font: 700 1.05rem/1 var(--display); padding: 12px 22px; white-space: nowrap; }
.tape-run span::after { content: "♥"; margin-left: 44px; color: #D63A6E; }
@keyframes tape { to { transform: translateX(-50%); } }
.gen-stage { perspective: 1100px; display: grid; justify-items: center; }
.gen-stage .fine { margin-top: 44px; max-width: min(100%, 340px); }
.book { position: relative; width: min(100%, 380px); aspect-ratio: 4 / 5; transform-style: preserve-3d; transform: rotateY(calc(var(--ry, -16) * 1deg)) rotateX(calc(var(--rx, 6) * 1deg)); transition: transform .25s ease-out; animation: bookfloat 5s ease-in-out infinite; }
@keyframes bookfloat { 50% { translate: 0 -12px; } }
.book-cover { position: absolute; inset: 0; background: var(--sky-soft); border: var(--line); border-radius: 10px 22px 22px 10px; display: grid; grid-template-rows: auto auto 1fr auto auto; justify-items: center; padding: 7% 8% 6%; overflow: hidden; box-shadow: inset 14px 0 0 rgba(91, 70, 54, .09); background-image: radial-gradient(circle at 50% 62%, var(--butter) 0 38%, transparent 39%); }
.book-pages { position: absolute; inset: 3% -4% -3.5% 2%; background: repeating-linear-gradient(#fff 0 3px, #e6e2da 3px 5px); border: var(--line); border-radius: 8px 20px 20px 8px; transform: translateZ(-26px); }
.mock { justify-self: stretch; margin: -2% -4% 8px; padding: 7px 10px; background: var(--ink); color: #fff; border-radius: 8px; font: 800 .8rem/1.25 var(--body); letter-spacing: .04em; text-transform: uppercase; text-align: center; }
.book-wm { width: 72%; margin-right: 14%; }
.book-dood { width: 62%; align-self: center; }
.book-title { font: 700 1.5rem/1 var(--display); margin-bottom: 10px; }
.book-wt { font: 800 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 6px 0 12px; }
.plate { display: flex; align-items: center; gap: 8px; background: var(--white); border: var(--line); border-radius: 14px; padding: 8px 14px; font: 700 1.05rem/1 var(--display); }
.reels { display: inline-flex; gap: 3px; font-size: 1.7rem; }
.reel { display: block; height: 1.15em; width: .82em; overflow: hidden; background: var(--ink); color: var(--sun); border-radius: 7px; }
.reel i { display: block; font-style: normal; text-align: center; line-height: 1.15em; transform: translateY(calc(var(--d, 0) * -1.15em)); transition: transform .5s cubic-bezier(.3, 1.3, .5, 1); }
.reel i span { display: block; height: 1.15em; }
.plate-of { font-size: .9rem; white-space: nowrap; }
.book-stamp { position: absolute; right: -11%; top: 33%; width: 26%; aspect-ratio: 1; display: grid; place-items: center; text-align: center; font: 700 clamp(.78rem, 1.4vw, 1rem)/1.05 var(--display); background: var(--rose); border: var(--line); border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--ink); transform: translateZ(30px) rotate(14deg); }
.reel--static { width: auto; padding: 0 .28em; letter-spacing: .12em; line-height: 1.15em; }
.book-fig { display: grid; justify-items: center; width: 100%; }

/* product layout */
.product { padding-bottom: clamp(120px, 14vw, 200px); }
.product .sunball { display: none; }
.product-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap); align-items: center; }
.product-copy .t-hero { font-size: clamp(2.7rem, 6.4vw, 4.8rem); }
.product-copy .sub { margin-top: 20px; font-weight: 700; }
.product-copy .facts { display: flex; flex-wrap: wrap; margin: 26px 0 0; }
.product-copy .fine { color: var(--ink); max-width: 52ch; }
.gen-stage .fine { color: var(--ink); }
.num-ctl { margin-top: 22px; display: grid; justify-items: center; gap: 10px; }
.num-h { font: 800 1rem/1.2 var(--body); }
.num-row { display: flex; gap: 10px; align-items: center; }
.num-row .btn-sm { min-width: 52px; }

/* purchase panel: the static prelaunch state. store.js may replace it with the real widget (store.css). */
.store { margin-top: 26px; max-width: 560px; }
.soon-box { background: var(--white); border: var(--line); border-radius: var(--r-md); box-shadow: var(--pop); padding: 20px 22px; display: grid; gap: 12px; }
.soon { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; width: 100%; font: 700 1.2rem/1 var(--display); padding: 12px 22px; border: 3px dashed var(--grey); border-radius: 999px; background: repeating-linear-gradient(-45deg, var(--cream) 0 12px, #F6EFDC 12px 24px); color: var(--ink-soft); cursor: not-allowed; user-select: none; }
.store .store-fine { font-size: .98rem; }

.tape-sec { padding: clamp(90px, 10vw, 130px) 0 clamp(80px, 9vw, 120px); overflow: hidden; }
.tape-sec .tape { top: 30px; background: var(--white); }
.nb { white-space: nowrap; }
.who { margin-top: 22px; }

@media (max-width: 860px) {
  .product-in { grid-template-columns: minmax(0, 1fr); }
  .product-copy { text-align: left; }
  .gen-stage { padding-top: 10px; }
}
@media (max-width: 620px) {
  .book { width: min(78%, 300px); }
  .book-stamp { top: 38%; }

}
