/* Poker theme (EPT Prague articles only): felt stage with a chip stack, chip background that blurs on scroll.
   Motion is transform and opacity only; the blurred layer is pre-rendered and crossfaded, never re-filtered per frame. */

/* ---------- background chips ---------- */
.pk-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.pk-layer { position: absolute; inset: 0; }
.pk-layer.soft { opacity: 0; filter: blur(9px); }
.pk-b { position: absolute; display: block; aspect-ratio: 1; transform: rotate(var(--r)); will-change: transform; }
.pk-b .pk-chip { display: block; width: 100%; height: 100%; filter: drop-shadow(0 8px 14px rgba(14, 27, 44, .28)); }
.pk-b.d2 { opacity: .8; }
.pk-b.d3 { opacity: .55; }
.pk-page .post, .pk-page .col-side > * { position: relative; }
@media (max-width: 1279px) { .pk-b { width: 36px !important; } .pk-layer.sharp { opacity: .45; } }
@media (max-width: 700px) { .pk-b.d3 { display: none; } }

/* ---------- felt stage ---------- */
.pk-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; margin-inline: 0; container-type: inline-size; isolation: isolate; background: #0B3D2A; }
.pk-felt { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 60% at 62% 48%, #17865A 0%, #0E5C3C 45%, #072A1C 100%); }
.pk-felt::after { content: ""; position: absolute; inset: 4.5%; border: .35cqw solid rgba(255, 210, 122, .35); border-radius: 50% / 46%; }
.pk-suit { position: absolute; font-style: normal; font-size: 4cqw; color: rgba(255, 243, 230, .14); }
.pk-suit.u0 { left: 8%; top: 12%; } .pk-suit.u1 { left: 15%; bottom: 12%; color: rgba(229, 72, 77, .28); }
.pk-suit.u2 { right: 7%; top: 14%; color: rgba(229, 72, 77, .28); } .pk-suit.u3 { right: 12%; bottom: 10%; }
.pk-big { position: absolute; left: 7%; top: 18%; margin: 0; font: 800 17cqw/0.9 var(--font-head); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: .25cqw rgba(255, 243, 230, .55); }
.pk-tag { position: absolute; left: 7.4%; top: 58%; margin: 0; font: 700 2.6cqw/1 var(--font-head); letter-spacing: .18em; text-transform: uppercase; color: #FFD27A; }
.pk-tag::before { content: ""; display: block; width: 8cqw; height: .5cqw; margin-bottom: 1.6cqw; background: #E5484D; border-radius: 1cqw; transform-origin: left; }
.pk-stack { position: absolute; right: 22%; bottom: 14%; width: 17cqw; height: 26cqw; }
.pk-s { position: absolute; left: 0; bottom: calc(var(--i) * 2.6cqw); width: 100%; aspect-ratio: 1; transform: scaleY(.42); transform-origin: 50% 100%; }
.pk-s .pk-chip, .pk-f .pk-chip { display: block; width: 100%; height: 100%; filter: drop-shadow(0 .6cqw .8cqw rgba(0, 0, 0, .45)); }
.pk-f { position: absolute; width: 9cqw; aspect-ratio: 1; }
.pk-f.f0 { right: 8%; top: 16%; } .pk-f.f1 { right: 44%; top: 12%; width: 6cqw; }
.pk-f.f2 { right: 6%; bottom: 18%; width: 7cqw; } .pk-f.f3 { right: 46%; bottom: 10%; width: 5cqw; }

@media (prefers-reduced-motion: no-preference) {
  .pk-big { animation: pk-in 1s cubic-bezier(.23, 1, .32, 1) .1s both; }
  .pk-tag { animation: pk-in .8s cubic-bezier(.23, 1, .32, 1) .35s both; }
  .pk-tag::before { animation: pk-line .8s cubic-bezier(.23, 1, .32, 1) .55s both; }
  .pk-s { animation: pk-drop .55s cubic-bezier(.34, 1.4, .64, 1) both; animation-delay: calc(.35s + var(--i) * 110ms); }
  .pk-f { animation: pk-pop .7s cubic-bezier(.34, 1.56, .64, 1) 1.2s both, pk-float 6s ease-in-out 2s infinite; }
  .pk-f.f1 { animation-delay: 1.35s, 2.4s; } .pk-f.f2 { animation-delay: 1.5s, 2.8s; } .pk-f.f3 { animation-delay: 1.65s, 3.2s; }
}
@keyframes pk-in { from { opacity: 0; transform: translateX(-3cqw); } to { opacity: 1; transform: none; } }
@keyframes pk-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pk-drop { from { opacity: 0; transform: translateY(-26cqw) scaleY(.42); } to { opacity: 1; transform: scaleY(.42); } }
@keyframes pk-pop { from { opacity: 0; transform: scale(.9) rotate(-40deg); } to { opacity: 1; transform: none; } }
@keyframes pk-float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -1.4cqw; rotate: 14deg; } }

/* ---------- article body accents ---------- */
.pk-page .prose h2::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 10px; border-radius: 4px; background: linear-gradient(90deg, #C8102E, #FFD27A); }
.pk-page .prose blockquote.note { border-left-color: #0F7A4A; }
.pk-rv { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.23, 1, .32, 1), transform .6s cubic-bezier(.23, 1, .32, 1); }
.pk-rv.pk-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .pk-layer.soft { display: none; }
  .pk-rv { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 700px) { .pk-bg { opacity: .35; } .pk-b { width: 28px !important; } }
