/* Opening "pad" (r2/op-pad.js): a tear-off pad, "I make" and one skill on every sheet */
[data-s3k="pad"].s3-boot::after { background: #F25BA9; }
.op-pad { color: #17130F; }
/* the binding: a black cloth strip glued over the head of the pad, with its weave and the shadow it throws on the top sheet */
.pd-strip { position: absolute; left: 0; right: 0; top: 0; z-index: 30; height: calc(26px + env(safe-area-inset-top, 0px)); background-color: #1b1a18;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 45%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .055) 0 1px, rgba(255, 255, 255, 0) 1px 3px), repeating-linear-gradient(0deg, rgba(0, 0, 0, .3) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 5px 9px -1px rgba(30, 14, 0, .34); }
.pd-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(158deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 46%, rgba(40, 20, 0, .055)), var(--c); /* the room's light falls from the upper left */ transform-origin: 50% 0; overflow: hidden; backface-visibility: hidden; }
/* the row of perforations the sheet tears along, and the paper falling a little into shade under the binding */
.pd-sheet::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 40px; pointer-events: none;
  background: radial-gradient(circle at 5px 11px, rgba(23, 19, 15, .34) 0 1.1px, rgba(23, 19, 15, 0) 1.6px) 0 0 / 10px 40px repeat-x, linear-gradient(180deg, rgba(30, 14, 0, .12), rgba(30, 14, 0, 0) 70%); }
.pd-grain { position: absolute; inset: 0; pointer-events: none; opacity: .34; mix-blend-mode: soft-light; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* the light a turning sheet catches: a soft band that crosses it from the free edge to the binding, the edge itself a little in shade */
.pd-lit { position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; opacity: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .27) 46%, rgba(255, 255, 255, .06) 64%, rgba(40, 20, 0, .18) 100%); }
/* the shadow of the lifted sheet's free edge on the sheet beneath */
.pd-cast { position: absolute; left: 0; right: 0; top: 0; height: 46vh; pointer-events: none; opacity: 0; transform: translateY(100vh); transform-origin: 50% 0; background: linear-gradient(180deg, rgba(30, 14, 0, .42), rgba(30, 14, 0, .16) 38%, rgba(30, 14, 0, 0)); }
/* the print */
.pd-b { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.pd-b p { margin: 0; position: absolute; white-space: nowrap; color: rgba(23, 19, 15, .94); }
.pd-i { left: 0; top: 0; font: 800 var(--fi, 96px)/.9 'Albert Sans', system-ui, sans-serif; letter-spacing: -.05em; margin-left: -.045em !important; }
.pd-w { font-family: Anton, 'Arial Narrow', sans-serif; font-weight: 400; line-height: 1; text-transform: uppercase; }
.pd-base { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
