.pktile { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 18px; padding: 12px 16px; text-align: left; cursor: pointer; color: var(--text); font-family: var(--font); background: linear-gradient(100deg, rgba(var(--p1-rgb), .6), rgba(0, 0, 0, .35)); border: 2px solid var(--acc); transition: transform .15s; }
.pktile:hover { transform: translateY(-2px); }
.pktile:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pkicon { flex: none; width: 36px; height: 50px; border-radius: 4px; background: linear-gradient(135deg, var(--p1-bright), var(--p1-dark)); border: 2px solid var(--acc); transform: rotate(-8deg); box-shadow: 0 0 14px rgba(var(--acc-rgb), .6); animation: pkbob 2.4s ease-in-out infinite; }
.pktile.opened .pkicon { animation: none; opacity: .55; box-shadow: none; }
.pktext b { display: block; font-style: italic; font-size: 1.25rem; text-transform: uppercase; color: var(--acc); line-height: 1.1; }
.pktext span { color: var(--muted); font-size: .95rem; }
@keyframes pkbob { 50% { transform: rotate(6deg) translateY(-3px); } }

#pk { position: fixed; inset: 0; z-index: 65; display: none; touch-action: none; background: radial-gradient(ellipse at 50% 40%, rgba(var(--p1-rgb), .55), rgba(5, 3, 2, .97) 72%), #050302; }
#pk.on { display: block; }
#pk canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
#pk.flat canvas { display: none; }
.pk-flat { display: none; position: absolute; left: 50%; top: 40%; width: min(72vw, 300px); transform: translate(-50%, -50%); }
#pk.flat .pk-flat { display: block; animation: pkflip .9s ease-out; }
@keyframes pkflip { from { transform: translate(-50%, -50%) rotateY(180deg) scale(.4); opacity: 0; } }
.pk-step { position: absolute; left: 0; right: 0; top: 36%; padding: 0 12px; text-align: center; pointer-events: none; font: italic 700 clamp(2.6rem, 14vw, 6.5rem)/1 var(--font); text-transform: uppercase; color: #fff; text-shadow: 0 0 30px var(--acc), 0 4px 12px #000; }
.pk-step.pop { animation: pkpop .55s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes pkpop { from { transform: scale(.3); opacity: 0; } }
.pk-hint { position: absolute; left: 0; right: 0; bottom: 12%; text-align: center; pointer-events: none; text-transform: uppercase; letter-spacing: .08em; color: var(--text); animation: pkpulse 1.2s ease-in-out infinite alternate; }
@keyframes pkpulse { to { opacity: .45; } }
.pk-end { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 30px 14px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(5, 3, 2, .96) 65%, transparent); }
.pk-end[hidden] { display: none; }
.pk-end h2 { margin: 0; font: italic 700 clamp(1.6rem, 7vw, 2.4rem)/1 var(--font); text-transform: uppercase; color: var(--acc); }
.pk-end p { margin: 0; color: var(--muted); font-size: .95rem; }
.pk-end .acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
#pk button { font: 700 .95rem var(--font); text-transform: uppercase; letter-spacing: .05em; padding: 11px 16px; cursor: pointer; color: var(--text); background: rgba(0, 0, 0, .5); border: 2px solid var(--line); }
#pk button.go { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
#pk button:disabled { opacity: .55; cursor: default; }
#pk button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
#pk .pk-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 1.3rem; }
#pk .pk-skip { position: absolute; top: 12px; left: 12px; }
#pk .pk-skip[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .pkicon, .pk-hint, .pk-step.pop, #pk.flat .pk-flat { animation: none; } .pktile { transition: none; } }
.games { display: grid; gap: 10px; margin-top: 18px; }
.games .pktile, .games .pentile, .games .chancetile { margin-top: 0; }
@media (min-width: 900px) { .games { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .games .pktile { height: 100%; } }
