/* Shared magazine flipbook (StPageFlip + paper effects). Used by project-worldcup.html and project-worldcup-2018.html */
.wc-flip__stage { max-width: min(100%, calc((100svh - 22rem) * 1.414)); margin: 0 auto; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.wc-flip__stage.is-closed-front { transform: translateX(-25%); }
.wc-flip__stage.is-closed-back { transform: translateX(25%); }
.wc-flip__hint { text-align: center; margin-top: 1.2rem; opacity: .6; }
.wc-flip__book { position: relative; margin: 0 auto; }
/* before StPageFlip starts: keep pages out of the layout and reserve the spread's space */
.wc-flip__book:not(.stf__parent) { aspect-ratio: 1.414 / 1; }
.wc-flip__book:not(.stf__parent) .wc-flip__page { display: none; }
@media only screen and (max-width: 499px) { .wc-flip__book:not(.stf__parent) { aspect-ratio: .707 / 1; } }
.wc-flip__page { background: #fff; overflow: hidden; }
/* curved paper: top/bottom edges dip into the spine, shading bends the page */
.wc-flip__page.--soft.--right { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 2.4C2.5 0.7 8 0 22 0H100V100H22C8 100 2.5 99.3 0 97.6Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 2.4C2.5 0.7 8 0 22 0H100V100H22C8 100 2.5 99.3 0 97.6Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.wc-flip__page.--soft.--left { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M100 2.4C97.5 0.7 92 0 78 0H0V100H78C92 100 97.5 99.3 100 97.6Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M100 2.4C97.5 0.7 92 0 78 0H0V100H78C92 100 97.5 99.3 100 97.6Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.wc-flip__page::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.wc-flip__page.--soft.--right::after { background: linear-gradient(to right, rgba(0,0,0,.34) 0, rgba(0,0,0,.16) 2.5%, rgba(0,0,0,.05) 6%, rgba(255,255,255,.16) 10%, rgba(255,255,255,0) 18%, rgba(0,0,0,0) 80%, rgba(0,0,0,.06) 100%); }
.wc-flip__page.--soft.--left::after { background: linear-gradient(to left, rgba(0,0,0,.34) 0, rgba(0,0,0,.16) 2.5%, rgba(0,0,0,.05) 6%, rgba(255,255,255,.16) 10%, rgba(255,255,255,0) 18%, rgba(0,0,0,0) 80%, rgba(0,0,0,.06) 100%); }
.wc-flip__page.--hard.--right::after { background: linear-gradient(to right, rgba(0,0,0,.22) 0, rgba(255,255,255,.18) 1.6%, rgba(0,0,0,.06) 3%, rgba(0,0,0,0) 6%); }
.wc-flip__page.--hard.--left::after { background: linear-gradient(to left, rgba(0,0,0,.22) 0, rgba(255,255,255,.18) 1.6%, rgba(0,0,0,.06) 3%, rgba(0,0,0,0) 6%); }
/* page stack on the outer edges; thickness follows the reading position */
.wc-flip__edge { position: absolute; top: .5%; bottom: .5%; width: 0; pointer-events: none; transition: width .6s ease;
  background: repeating-linear-gradient(to right, #fbfaf8 0 1px, #d8d4ce 1px 2px); box-shadow: 0 10px 18px rgba(0,0,0,.14); }
.wc-flip__edge--left { right: 100%; border-radius: 3px 0 0 3px; margin-right: -1px; }
.wc-flip__edge--right { left: 100%; border-radius: 0 3px 3px 0; margin-left: -1px; }
.wc-flip__edge--left.is-half { right: 50%; }
.wc-flip__page img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.wc-flip .stf__parent { filter: drop-shadow(0 24px 30px rgba(0,0,0,.18)); }
.wc-flip__controls { display: flex; justify-content: center; align-items: center; gap: 2.4rem; margin-top: 2.4rem; }
.wc-flip__count { min-width: 9rem; text-align: center; font-variant-numeric: tabular-nums; }
.wc-flip__controls .btn[disabled] { opacity: .3; pointer-events: none; }
