/* Badminton Raw — live book covers.
 *
 * The Footwork System and The Gym System covers, drawn in HTML/CSS instead of
 * a screenshot of the PDF, so they are as sharp as the portal's raw-cover
 * cards at any size and on any screen. Every measurement is in container
 * units (cqw) taken from the PDF covers' own proportions, so the cover scales
 * as one object.
 *
 * Markup: <div class="book"><div class="bk">…</div></div>
 * `.book` is the presentation (tilt, shadow, sheen); `.bk` is the cover.
 */

.bk{--bk-ground:#F5F1E9;--bk-panel:#191A18;--bk-ink:#14110F;--bk-red:#B8233B;--bk-gold:#D9BC8A;
  position:relative;container-type:inline-size;aspect-ratio:1000/1414;width:100%;overflow:hidden;
  background:var(--bk-ground);color:var(--bk-ink);font-family:"Inter Tight",ui-sans-serif,system-ui,sans-serif;
  border-radius:.6cqw 1.4cqw 1.4cqw .6cqw;-webkit-font-smoothing:antialiased}
.bk>*{position:absolute;margin:0}
.bk-r{top:6.6cqw;left:7.3cqw;font-size:5cqw;font-weight:800;letter-spacing:-.06em;line-height:1;color:var(--bk-red)}
.bk-brand{top:7.85cqw;left:16cqw;font-size:1.95cqw;font-weight:800;letter-spacing:.01em;line-height:1;text-transform:uppercase}
.bk-ed{top:7.9cqw;right:7.3cqw;font-size:1.25cqw;font-weight:500;letter-spacing:.02em;line-height:1;text-transform:uppercase}
.bk-author{top:16.9cqw;left:7.3cqw;font-size:1.48cqw;font-weight:700;letter-spacing:-.005em;line-height:1;text-transform:uppercase;color:var(--bk-red)}
.bk-title{top:22.4cqw;left:7cqw;right:5cqw;line-height:1}
.bk-title b{display:block;font-size:10.7cqw;font-weight:800;letter-spacing:-.04em;line-height:1;text-transform:uppercase}
.bk-title em{display:block;margin-top:.9cqw;font-family:"Instrument Serif",ui-serif,Georgia,serif;font-style:italic;font-weight:400;font-size:16.2cqw;letter-spacing:-.01em;line-height:1;text-transform:uppercase}
.bk-sub{top:54.6cqw;left:7.3cqw;width:62cqw;font-size:2.5cqw;line-height:1.46;color:#4A443F}
.bk-panel{left:0;right:0;bottom:0;top:81.1cqw;background:var(--bk-panel);color:#F5F1E9}
.bk-panel>*{position:absolute;margin:0;left:7.3cqw}
.bk-kick{top:4.9cqw;font-size:1.35cqw;font-weight:700;letter-spacing:.01em;text-transform:uppercase;color:var(--bk-gold);line-height:1}
.bk-hook{top:10.6cqw;right:6cqw;line-height:1}
.bk-hook b{display:block;font-size:7.15cqw;font-weight:700;letter-spacing:-.035em;line-height:1}
.bk-hook em{display:block;margin-top:2.6cqw;font-family:"Instrument Serif",ui-serif,Georgia,serif;font-style:italic;font-weight:400;font-size:7.6cqw;letter-spacing:-.01em;line-height:1}
.bk-desc{top:30.4cqw;width:66cqw;font-size:2.2cqw;line-height:1.48;color:rgba(245,241,233,.84)}
.bk-bars{top:47.2cqw;right:8.3cqw;display:grid;grid-template-columns:repeat(4,1fr);gap:1.2cqw}
.bk-bars span{display:block;padding-top:2.1cqw;border-top:.38cqw solid var(--c);font-size:1.12cqw;font-weight:700;letter-spacing:.01em;text-transform:uppercase;line-height:1}
.bk-ver{top:55.7cqw;font-size:1.02cqw;letter-spacing:.02em;text-transform:uppercase;color:rgba(245,241,233,.55);line-height:1}

/* The Gym System's title is two short words, so it sets larger. */
.bk-gym .bk-title b{font-size:12.6cqw}
.bk-gym .bk-title em{font-size:16.6cqw;margin-top:.4cqw}
.bk-gym .bk-sub{top:55.4cqw;width:54cqw}
.bk-gym .bk-hook b,.bk-gym .bk-hook em{font-size:7.4cqw}
.bk-gym .bk-hook em{margin-top:1.6cqw}

/* ---- presentation: a real object on the page ---------------------------- */
.book{position:relative;width:100%;max-width:380px;perspective:1800px;isolation:isolate}
.book>.bk{transform:rotateY(-16deg) rotateX(3deg);transform-origin:40% 50%;
  box-shadow:-1px 0 0 rgba(255,255,255,.4) inset,
    0 1.5px 2px rgba(20,17,15,.12),0 8px 14px -6px rgba(20,17,15,.18),0 30px 60px -18px rgba(20,17,15,.34),0 60px 90px -40px rgba(20,17,15,.32);
  transition:transform .8s cubic-bezier(.2,.75,.25,1),box-shadow .8s cubic-bezier(.2,.75,.25,1)}
/* spine fold and light on the cover */
.book>.bk::before{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;
  background:linear-gradient(90deg,rgba(20,17,15,.28) 0,rgba(20,17,15,.06) 1.6%,rgba(255,255,255,.22) 2.6%,rgba(255,255,255,0) 6%),
    linear-gradient(115deg,rgba(255,255,255,.16),rgba(255,255,255,0) 42%,rgba(20,17,15,.06))}
/* the sheen that sweeps across on hover, same as the portal covers */
.book>.bk::after{content:"";position:absolute;inset:0;z-index:4;pointer-events:none;
  background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.22),transparent 65%);
  transform:translateX(-80%);transition:transform 1s cubic-bezier(.2,.75,.25,1)}
.book:hover>.bk{transform:rotateY(-6deg) rotateX(1deg) translateY(-6px);
  box-shadow:-1px 0 0 rgba(255,255,255,.4) inset,0 2px 3px rgba(20,17,15,.12),0 14px 24px -8px rgba(20,17,15,.2),0 44px 80px -20px rgba(20,17,15,.4),0 80px 110px -50px rgba(20,17,15,.34)}
.book:hover>.bk::after{transform:translateX(80%)}
.book.flat>.bk{transform:none;box-shadow:0 3px 5px rgba(20,17,15,.05),0 14px 30px rgba(20,17,15,.1)}
.book.flat:hover>.bk{transform:translateY(-4px) scale(1.015);box-shadow:0 18px 38px rgba(20,17,15,.16)}
.on-dark .book>.bk{box-shadow:0 2px 3px rgba(0,0,0,.3),0 30px 60px -14px rgba(0,0,0,.6)}
@media (prefers-reduced-motion: reduce){.book>.bk,.book>.bk::after{transition:none}}
.bk-sub{width:70cqw}
.bk-hook b{font-size:6.7cqw}
.bk-hook em{font-size:7.1cqw;margin-top:2.2cqw}
.bk-desc{width:72cqw}
.book.flat>.bk::before{background:linear-gradient(115deg,rgba(255,255,255,.12),rgba(255,255,255,0) 42%,rgba(20,17,15,.04))}
