/* Pack-Simulator (/pack-simulator/) */
#packSimApp { max-width: 980px; margin: 0 auto; padding: 18px 16px 40px; }
#packSimApp h2 { font-size: 1.05rem; font-weight: 800; color: #fff; margin: 26px 0 10px; }
.ps-lead { color: var(--text-dim); font-size: 0.92rem; line-height: 1.5; margin: 0 0 16px; }
.ps-controls { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.ps-field { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1 1 180px; }
.ps-label { font-size: 0.74rem; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.ps-segs { display: flex; gap: 6px; }
.ps-seg { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); color: #fff; font-weight: 800; font-size: 0.9rem; cursor: pointer; }
.ps-seg.active { background: var(--accent-gradient, linear-gradient(135deg,#3b82f6,#8b5cf6)); border-color: transparent; }
#packSimApp .cx-select { width: 100%; min-height: 42px; }

.ps-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 380px; padding: 20px 8px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); background: radial-gradient(ellipse at 50% 30%, rgba(99,102,241,0.18), rgba(18,24,38,0.5) 70%); overflow: hidden; }
.ps-game-riftbound { background: radial-gradient(ellipse at 50% 30%, rgba(20,184,166,0.2), rgba(18,24,38,0.5) 70%); }
.ps-stage:empty { display: none; }
.ps-hint, .ps-loading, .ps-progress { color: var(--text-dim); font-size: 0.85rem; font-weight: 700; text-align: center; }
.ps-loading { padding: 80px 0; }
#packSimApp .ps-open-btn { width: auto; min-width: 220px; padding: 12px 26px; margin: 4px 0 0; }

/* Booster-Pack */
.ps-pack-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 6px; }
.ps-pack { position: relative; display: block; width: 190px; height: 300px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 16px 26px rgba(0,0,0,0.5)); transition: transform 0.2s; }
.ps-pack:hover { transform: translateY(-4px) rotate(-1deg); }
.ps-pack-top, .ps-pack-bottom { position: absolute; left: 0; right: 0; height: 16px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 3px, rgba(0,0,0,0.25) 3px 6px), #9ca3af; z-index: 2; }
.ps-pack-top { top: 0; border-radius: 6px 6px 0 0; }
.ps-pack-bottom { bottom: 0; border-radius: 0 0 6px 6px; }
.ps-pack-body { position: absolute; inset: 14px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; text-align: center; color: #fff; overflow: hidden; }
.ps-pack-pokemon .ps-pack-body { background: linear-gradient(160deg, #facc15 0%, #f97316 38%, #7c3aed 100%); }
.ps-pack-riftbound .ps-pack-body { background: linear-gradient(160deg, #22d3ee 0%, #0ea5e9 40%, #1e1b4b 100%); }
.ps-pack-body::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 48%, transparent 66%); background-size: 250% 100%; background-repeat: no-repeat; animation: psSheen 3.2s linear infinite; pointer-events: none; }
.ps-pack-game { font-size: 0.7rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; }
.ps-pack-name { font-size: 1.55rem; font-weight: 900; line-height: 1.1; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.ps-pack-sub { font-size: 0.74rem; font-weight: 800; background: rgba(0,0,0,0.3); padding: 3px 10px; border-radius: 99px; }
.ps-tearing { animation: psTear 0.75s ease-in forwards; pointer-events: none; }
.ps-tearing .ps-pack-top { animation: psTop 0.75s ease-in forwards; transform-origin: left bottom; }
@keyframes psSheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes psTear { 0% { transform: rotate(0); } 25% { transform: rotate(-3deg) scale(1.04); } 55% { transform: rotate(3deg) scale(1.06); } 100% { transform: scale(1.25); opacity: 0; filter: brightness(2.2) drop-shadow(0 0 40px #fff); } }
@keyframes psTop { 0% { transform: none; } 40% { transform: none; } 100% { transform: translate(40px,-60px) rotate(26deg); opacity: 0; } }

/* Karte */
.ps-card-wrap { perspective: 1100px; }
.ps-card { position: relative; display: block; width: min(250px, 66vw); aspect-ratio: 5 / 7; padding: 0; border: 0; background: none; cursor: pointer; animation: psIn 0.35s ease-out; }
.ps-card-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.ps-card.flipped .ps-card-inner { transform: rotateY(180deg); }
.ps-back, .ps-front { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; overflow: hidden; }
.ps-back { display: flex; align-items: center; justify-content: center; border: 3px solid rgba(255,255,255,0.7); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.ps-back-pokemon { background: radial-gradient(circle at 50% 50%, #ef4444 0 16%, #fff 16% 19%, #1e3a8a 19% 100%); }
.ps-front { transform: rotateY(180deg); background: #0b0f19; }
.ps-front .ps-face { height: 100%; }
.ps-front .ps-meta { display: none; }
.ps-face { position: relative; border-radius: 10px; overflow: hidden; background: #111827; aspect-ratio: 5 / 7; }
.ps-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ps-noimg { display: flex; align-items: center; justify-content: center; height: 100%; padding: 10px; text-align: center; color: #cbd5e1; font-weight: 800; font-size: 0.8rem; }
.ps-shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.ps-fin-reverse .ps-shine, .ps-fin-foil .ps-shine { opacity: 1; background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.28) 40%, rgba(120,200,255,0.2) 50%, transparent 70%); background-size: 260% 100%; background-repeat: no-repeat; animation: psSheen 4s linear infinite; mix-blend-mode: screen; }
.ps-hit-2 { box-shadow: 0 0 0 2px #38bdf8, 0 0 22px rgba(56,189,248,0.55); }
.ps-hit-3 { box-shadow: 0 0 0 2px #c084fc, 0 0 28px rgba(192,132,252,0.7); }
.ps-hit-4 { box-shadow: 0 0 0 3px #fbbf24, 0 0 38px rgba(251,191,36,0.85); }
.ps-hit-4 .ps-shine { opacity: 1; background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,0.4) 45%, rgba(255,215,120,0.3) 55%, transparent 70%); background-size: 260% 100%; background-repeat: no-repeat; animation: psSheen 2.4s linear infinite; mix-blend-mode: screen; }
@keyframes psIn { from { opacity: 0; transform: translateX(36px) scale(0.96); } to { opacity: 1; transform: none; } }

.ps-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.ps-seen { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.ps-mini { width: 38px; aspect-ratio: 5 / 7; padding: 0; border: 0; border-radius: 4px; background: #111827; cursor: pointer; overflow: hidden; }
.ps-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Ergebnis */
.ps-result { margin-top: 18px; }
.ps-result-head, .ps-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ps-kpi { background: rgba(18,24,38,0.7); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; }
.ps-kpi span { font-size: 0.7rem; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.ps-kpi b { font-size: 1rem; color: #fff; word-break: break-word; }
.ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.ps-tile { padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; color: inherit; font: inherit; }
.ps-tile .ps-meta { display: flex; flex-direction: column; gap: 1px; padding: 6px 2px 0; font-size: 0.72rem; color: var(--text-dim); }
.ps-tile .ps-meta b { color: #fff; font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-price { color: #4ade80; font-weight: 800; }
.ps-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ps-chip { font-size: 0.78rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,0.06); color: #fff; }
.ps-reset { margin-top: 4px; }
.ps-note { margin-top: 28px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); color: var(--text-dim); font-size: 0.82rem; line-height: 1.55; }
.ps-note b { color: #fff; }
.ps-note p { margin: 6px 0 0; }
.ps-credit { font-size: 0.76rem; opacity: 0.85; }

@media (prefers-reduced-motion: reduce) {
  .ps-pack-body::after, .ps-shine, .ps-card { animation: none !important; }
  .ps-card-inner { transition-duration: 0.01s; }
  .ps-tearing, .ps-tearing .ps-pack-top { animation-duration: 0.01s; }
}

/* Echtes Booster-Bild; ohne Bild greift der gezeichnete Pack (ps-pack-fallback) */
.ps-pack-img { width: auto; height: auto; }
.ps-pack-photo { display: block; height: 310px; width: auto; max-width: 78vw; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0,0,0,0.55)); }
.ps-pack-img .ps-pack-top, .ps-pack-img .ps-pack-body, .ps-pack-img .ps-pack-bottom { display: none; }
.ps-pack-img.ps-pack-fallback { width: 190px; height: 300px; }
.ps-pack-img.ps-pack-fallback .ps-pack-top, .ps-pack-img.ps-pack-fallback .ps-pack-bottom { display: block; }
.ps-pack-img.ps-pack-fallback .ps-pack-body { display: flex; }
.ps-pack-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,0.28) 48%, transparent 62%); background-size: 250% 100%; background-repeat: no-repeat; animation: psSheen 3.6s linear infinite; pointer-events: none; mix-blend-mode: screen; -webkit-mask: none; border-radius: 10px; }

/* Virtuelle Sammlung */
.ps-coll-note { color: var(--text-dim); font-size: 0.82rem; line-height: 1.5; margin: 0 0 12px; }
.ps-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 12px; }
.ps-ctile { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 7; padding: 0; border: 0; border-radius: 6px; background: #111827; color: inherit; overflow: hidden; cursor: zoom-in; }
.ps-ctile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-ctile.miss { background: rgba(255,255,255,0.04); border: 1px dashed rgba(255,255,255,0.12); cursor: default; }
.ps-cnum { font-size: 0.7rem; font-weight: 800; color: rgba(255,255,255,0.35); }
.ps-qty { position: absolute; right: 3px; bottom: 3px; background: rgba(0,0,0,0.78); color: #fff; font-size: 0.68rem; font-weight: 900; padding: 1px 6px; border-radius: 99px; }

/* Tageslimit */
.ps-left { color: var(--text-dim); font-size: 0.8rem; font-weight: 700; }
.ps-limit { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 22px 12px; max-width: 460px; }
.ps-limit-ico { font-size: 2.4rem; }
.ps-limit h2 { margin: 0; }
.ps-limit p { margin: 0; color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }
.ps-limit-label { margin-top: 8px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.ps-countdown { font-size: 2.3rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
.ps-limit-guest { margin-top: 10px !important; }

/* Kartenstapel: erste Karte sofort offen, Wischen/Tippen blaettert, Ziehen kippt */
.ps-deck { position: relative; width: min(270px, 70vw); aspect-ratio: 5 / 7; perspective: 900px; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; outline: none; }
.ps-deck:active { cursor: grabbing; }
.ps-slot { position: absolute; inset: 0; }
.ps-tilt-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; border-radius: 12px; box-shadow: 0 16px 38px rgba(0,0,0,0.6); --gx: 50%; --gy: 50%; --ga: 0; }
.ps-tilt-in .ps-face { height: 100%; border-radius: 12px; }
.ps-tilt-in img { pointer-events: none; -webkit-user-drag: none; }
.ps-glare { position: absolute; inset: 0; border-radius: 12px; pointer-events: none; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,0.8), rgba(255,255,255,0) 55%); opacity: var(--ga); mix-blend-mode: soft-light; }
.ps-slot.first { animation: psFirst 0.8s cubic-bezier(.2,.9,.25,1) both; }
.ps-slot.in { animation: psEnter 0.5s 0.05s cubic-bezier(.2,.85,.25,1) both; }
.ps-slot.out { z-index: 5; pointer-events: none; animation: psOut 0.46s cubic-bezier(.5,0,.75,.4) forwards; }
.ps-slot.pop .ps-tilt-in { animation: psPop 0.8s 0.35s ease-out; }
.ps-reveal-meta { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; color: var(--text-dim); font-size: 0.82rem; text-align: center; }
.ps-reveal-meta b { color: #fff; font-size: 1.02rem; }
.ps-meta-in { animation: psMetaIn 0.4s 0.1s ease-out both; }
@keyframes psFirst { from { opacity: 0; transform: translateY(90px) scale(0.55) rotateX(35deg); } to { opacity: 1; transform: none; } }
@keyframes psEnter { from { opacity: 0.2; transform: translateY(26px) scale(0.88); } to { opacity: 1; transform: none; } }
@keyframes psOut { to { opacity: 0; transform: translateX(calc(var(--dir, -1) * 125%)) translateY(-18px) rotate(calc(var(--dir, -1) * 16deg)) scale(0.94); } }
@keyframes psPop { 0%,100% { transform: none; } 40% { transform: scale(1.07); } }
@keyframes psMetaIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Pack kippbar */
.ps-pack-wrap { perspective: 900px; }
.ps-pack-img { touch-action: none; cursor: grab; transform-style: preserve-3d; will-change: transform; transition: none; --gx: 50%; --gy: 50%; --ga: 0; }
.ps-pack-img:hover { transform: none; }
.ps-pack-img::before { content: ''; position: absolute; inset: 0; z-index: 4; border-radius: 10px; pointer-events: none; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,0.85), rgba(255,255,255,0) 55%); opacity: var(--ga); mix-blend-mode: soft-light; }
@media (prefers-reduced-motion: reduce) { .ps-slot.first, .ps-slot.in, .ps-slot.out, .ps-slot.pop .ps-tilt-in, .ps-meta-in { animation-duration: 0.01s !important; animation-delay: 0s !important; } }

/* Echte Kartenrueckseiten (Pokemon und Riftbound-Hauptdeck, blau) */
.ps-back-pokemon { background: #1b3d8f url('/pack-simulator/img/back-pokemon.webp') center / cover no-repeat; border: 0; }
.ps-back-pokemon .ps-back-mark { display: none; }
.ps-back-riftbound { background: transparent url('/pack-simulator/img/back-riftbound.webp') center / 100% 100% no-repeat; border: 0; border-radius: 6% / 4.3%; }
.ps-back-riftbound .ps-back-mark { display: none; }

/* Glitzer ab Stufe 5 (Hyper Rare und besser) */
.ps-hit-5 { box-shadow: 0 0 0 3px #fde68a, 0 0 46px rgba(255,215,90,0.95), 0 0 90px rgba(255,120,220,0.5); }
.ps-hit-5 .ps-shine { opacity: 1; background: linear-gradient(115deg, transparent 22%, rgba(255,255,255,0.5) 44%, rgba(255,215,120,0.4) 54%, transparent 72%); background-size: 260% 100%; background-repeat: no-repeat; animation: psSheen 1.8s linear infinite; mix-blend-mode: screen; }
.ps-holo { position: absolute; inset: 0; border-radius: 12px; pointer-events: none; opacity: 0; }
.jackpot .ps-holo { opacity: 0.32; background: linear-gradient(115deg, #ff5fa2, #ffd45f, #6fff9a, #5fd4ff, #b07bff, #ff5fa2); background-size: 300% 300%; mix-blend-mode: overlay; animation: psHolo 3.2s linear infinite; }
.ps-tile.jackpot { position: relative; }
.ps-tile.jackpot .ps-face { box-shadow: 0 0 0 2px #fde68a, 0 0 22px rgba(255,215,90,0.8); }
.ps-tile.jackpot .ps-holo { inset: 0 0 auto 0; aspect-ratio: 5 / 7; opacity: 0.3; }
.ps-glitter { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.ps-glitter i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); background: hsl(var(--h), 100%, 82%); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px hsl(var(--h), 100%, 70%)); opacity: 0; animation: psTwinkle var(--d) var(--dl) ease-in-out infinite; }
.ps-glitter b { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3px 0 0 -3px; border-radius: 50%; background: hsl(var(--h), 100%, 75%); box-shadow: 0 0 8px hsl(var(--h), 100%, 70%); opacity: 0; animation: psBurst 1.4s var(--dl) cubic-bezier(.1,.7,.3,1) forwards; }
.ps-slot.jackpot { z-index: 3; }
@keyframes psTwinkle { 0%, 100% { opacity: 0; transform: scale(0.2) rotate(0); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: 0.5; transform: scale(0.6) rotate(80deg); } }
@keyframes psBurst { 0% { opacity: 1; transform: translate(0, 0) scale(1.2); } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.2); } }
@keyframes psHolo { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@media (prefers-reduced-motion: reduce) { .ps-glitter i { animation: none; opacity: 0.8; } .ps-glitter b { display: none; } .jackpot .ps-holo { animation: none; } }

/* Kopfbereich wie auf den Collection-Seiten */
.ps-hero .setguide-hero-sub { color: var(--text-dim); font-size: 0.92rem; line-height: 1.5; margin-bottom: 4px; }
.ps-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; position: relative; }
.ps-hero-actions .ps-label { flex-basis: 100%; margin-bottom: -4px; }
.ps-hero-actions .cx-select { flex: 1 1 170px; width: auto; min-width: 0; }
#packSimApp .ps-hero-actions .ps-open-btn { flex: 1 1 200px; width: auto; min-width: 180px; margin: 0; }
.ps-open-btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.ps-hero-stats .cx-stat-value { font-size: 1.02rem; }
@media (max-width: 480px) { .ps-hero-stats { gap: 6px; } .ps-hero-stats .cx-stat { padding: 9px 8px; gap: 6px; flex-direction: column; align-items: flex-start; } .ps-hero-stats .cx-stat-icon { font-size: 1.1rem; } }
.ps-hero-actions .ps-label { order: 0; }
.ps-hero-actions .cx-select { order: 1; }
#packSimApp .ps-hero-actions .ps-open-btn { order: 2; }
.ps-hero .ps-hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 480px) { .ps-hero-stats .cx-stat-value { font-size: 0.95rem; } .ps-hero-stats .cx-stat-label { font-size: 0.6rem; letter-spacing: 0.2px; } }

/* Vollbild-Karte: Hintergrund nicht scrollbar */
html.ps-lock, html.ps-lock body { overflow: hidden !important; overscroll-behavior: none; }
#setguideLightbox { overscroll-behavior: contain; touch-action: none; }

/* Popup beim Oeffnen: immer im Fokus, Hintergrund gesperrt */
.ps-ov { position: fixed; inset: 0; z-index: 5500; display: flex; align-items: center; justify-content: center; padding: 56px 16px 24px; opacity: 0; transition: opacity 0.28s ease; overscroll-behavior: contain; touch-action: none; }
.ps-ov[hidden] { display: none; }
.ps-ov.open { opacity: 1; }
.ps-ov-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, rgba(56,62,120,0.94) 0%, rgba(12,15,30,0.97) 55%, rgba(4,6,12,0.99) 100%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ps-ov.ps-game-riftbound .ps-ov-bg { background: radial-gradient(ellipse at 50% 42%, rgba(18,92,110,0.94) 0%, rgba(8,20,34,0.97) 55%, rgba(3,6,12,0.99) 100%); }
.ps-ov-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 520px; }
.ps-ov-close { position: absolute; top: 14px; right: 16px; z-index: 3; display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff; font-size: 1.1rem; cursor: pointer; }
.ps-ov[data-phase="reveal"] .ps-ov-close { display: flex; }
.ps-ov .ps-hint, .ps-ov .ps-progress, .ps-ov .ps-loading { color: rgba(255,255,255,0.72); }
.ps-ov .ps-loading { padding: 0; }
.ps-ov .ps-deck { width: min(300px, 74vw, calc((100dvh - 300px) * 0.714)); }
.ps-ov .ps-seen { max-width: 100%; }

/* Aufreissen: Anspannung -> Ruck -> Streifen reisst von links nach rechts ab -> Papierfetzen, Licht -> Karten steigen auf -> Pack sinkt weg */
.ps-tear { --ph: min(46dvh, 400px); position: relative; display: flex; flex-direction: column; align-items: center; padding-top: calc(var(--ph) * 0.42); }
.ps-tear-pack { position: relative; z-index: 2; display: inline-block; will-change: transform; animation: psTense 0.42s cubic-bezier(.45,0,.55,1) both, psRecoil 0.34s 0.82s cubic-bezier(.3,1.6,.5,1) forwards, psPackOut 0.5s 1.62s cubic-bezier(.5,0,.75,0) forwards; }
.ps-tear-bot, .ps-tear-top { display: block; height: var(--ph); width: auto; max-width: 80vw; position: relative; z-index: 3; -webkit-user-drag: none; }
.ps-tear-bot { clip-path: polygon(0 14%, 4% 11%, 12% 15%, 20% 11%, 28% 15%, 36% 11%, 44% 15%, 52% 11%, 60% 15%, 68% 11%, 76% 15%, 84% 11%, 92% 15%, 100% 12%, 100% 100%, 0 100%); }
.ps-tear-top { position: absolute; left: 0; top: 0; z-index: 4; will-change: transform, opacity; transform-origin: 98% 13%; clip-path: polygon(0 0, 100% 0, 100% 12%, 92% 15%, 84% 11%, 76% 15%, 68% 11%, 60% 15%, 52% 11%, 44% 15%, 36% 11%, 28% 15%, 20% 11%, 12% 15%, 4% 11%, 0 14%); animation: psRipTop 1.25s 0.38s linear forwards; }
.ps-tear-shadow { position: absolute; z-index: 1; left: 50%; bottom: -14px; width: 70%; height: 26px; margin-left: -35%; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,0.6), rgba(0,0,0,0) 70%); animation: psShadowOut 0.5s 1.62s ease-in forwards; }
.ps-tear-glow { position: absolute; z-index: 0; left: 50%; top: calc(var(--ph) * 0.55); width: calc(var(--ph) * 0.95); aspect-ratio: 1.3; transform: translate(-50%, -50%) scale(0.3); border-radius: 50%; background: radial-gradient(ellipse at 50% 55%, rgba(255,250,215,0.95) 0%, rgba(255,210,110,0.5) 30%, rgba(255,150,60,0) 68%); opacity: 0; will-change: transform, opacity; animation: psGlowIn 1.1s 0.78s cubic-bezier(.2,.7,.3,1) forwards; }
.ps-game-riftbound .ps-tear-glow { background: radial-gradient(ellipse at 50% 55%, rgba(225,255,255,0.95) 0%, rgba(90,225,235,0.5) 30%, rgba(30,130,210,0) 68%); }
.ps-tear.jackpot .ps-tear-glow { background: radial-gradient(ellipse at 50% 55%, #fff 0%, rgba(255,205,90,0.8) 26%, rgba(255,90,200,0.4) 48%, rgba(120,90,255,0) 70%); }
.ps-tear-rays { position: absolute; z-index: 0; left: 50%; top: calc(var(--ph) * 0.55); width: calc(var(--ph) * 1.15); aspect-ratio: 1; transform: translate(-50%, -50%) scale(0.4) rotate(0deg); border-radius: 50%; opacity: 0; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0.18) 0deg 6deg, rgba(255,255,255,0) 6deg 22deg); -webkit-mask: radial-gradient(circle, #000 0%, rgba(0,0,0,0.6) 35%, transparent 68%); mask: radial-gradient(circle, #000 0%, rgba(0,0,0,0.6) 35%, transparent 68%); animation: psRays 1.4s 0.85s ease-out forwards; }
.ps-tear-fan { position: absolute; z-index: 1; left: 50%; top: calc(var(--ph) * 0.55); width: 0; height: 0; }
.ps-tear-fan .ps-back { position: absolute; left: 0; top: 0; width: calc(var(--ph) * 0.36); aspect-ratio: 5 / 7; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.45); opacity: 0; transform: translate(-50%, 30%); will-change: transform, opacity; animation: psFanUp 0.62s 1.08s cubic-bezier(.3,1.45,.55,1) forwards; }
.ps-tear-fan .ps-back:nth-child(1) { --rot: -11deg; --dx: -24%; animation: psFanUp 0.62s 1.08s cubic-bezier(.3,1.45,.55,1) forwards, psFanFade 0.35s 1.62s ease-in forwards; }
.ps-tear-fan .ps-back:nth-child(3) { --rot: 11deg; --dx: 24%; animation: psFanUp 0.62s 1.18s cubic-bezier(.3,1.45,.55,1) forwards, psFanFade 0.35s 1.62s ease-in forwards; }
.ps-tear-fan .ps-back:nth-child(2) { --rot: 0deg; --dx: 0%; z-index: 1; animation: psFanUp 0.62s 1.13s cubic-bezier(.3,1.45,.55,1) forwards, psFanCenter 0.45s 1.68s cubic-bezier(.4,0,.2,1) forwards; }
.ps-tear-bits { position: absolute; z-index: 5; left: 0; right: 0; top: 13%; height: 0; pointer-events: none; }
.ps-tear-bits i { position: absolute; left: var(--x); top: 0; width: var(--w); height: var(--h); background: var(--c); clip-path: polygon(0 0, 100% 30%, 70% 100%, 10% 75%); opacity: 0; will-change: transform, opacity; animation: psBit var(--d) var(--dl) cubic-bezier(.15,.55,.35,1) forwards; }
.ps-tear-flash { position: absolute; z-index: 3; left: 50%; top: calc(var(--ph) * 0.55); width: calc(var(--ph) * 1.5); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.25) 30%, rgba(255,255,255,0) 62%); opacity: 0; animation: psFlash2 0.55s 0.86s ease-out forwards; }
@keyframes psTense { 0% { transform: none; } 55% { transform: scale(0.975, 0.985) rotate(-1.2deg); } 100% { transform: scale(0.985) rotate(-0.6deg); } }
@keyframes psRecoil { 0% { transform: scale(0.985) rotate(-0.6deg); } 35% { transform: translateY(7px) scale(1.01) rotate(0.6deg); } 100% { transform: none; } }
@keyframes psRipTop {
  0% { transform: none; opacity: 1; animation-timing-function: cubic-bezier(.4,0,.6,1); }
  16% { transform: rotate(-3.5deg) translateY(-1px); animation-timing-function: cubic-bezier(.3,0,.7,1); }
  30% { transform: rotate(-5deg) translateY(-2px); animation-timing-function: cubic-bezier(.6,0,.9,.4); }
  44% { transform: rotate(-17deg) translate(-3px, -8px); animation-timing-function: cubic-bezier(.15,.6,.35,1); }
  100% { transform: translate(clamp(110px, 40vw, 190px), -300px) rotate(64deg) scale(0.92); opacity: 0; }
}
@keyframes psGlowIn { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); } 35% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1.25); } }
@keyframes psRays { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(0deg); } 30% { opacity: 1; } 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1.1) rotate(35deg); } }
@keyframes psFanUp { 0% { opacity: 0; transform: translate(-50%, 30%) rotate(0deg); } 25% { opacity: 1; } 100% { opacity: 1; transform: translate(calc(-50% + var(--dx)), -88%) rotate(var(--rot)); } }
@keyframes psFanCenter { to { transform: translate(-50%, -62%) scale(1.25); } }
@keyframes psFanFade { to { opacity: 0; } }
@keyframes psBit { 0% { opacity: 1; transform: translate(0, 0) rotate(0deg); } 45% { opacity: 1; transform: translate(calc(var(--tx) * 0.65), var(--ty)) rotate(calc(var(--r) * 0.6)); } 100% { opacity: 0; transform: translate(var(--tx), calc(var(--ty) + 70px)) rotate(var(--r)); } }
@keyframes psFlash2 { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: 0; } }
@keyframes psPackOut { to { transform: translateY(70px) scale(0.94); opacity: 0; } }
@keyframes psShadowOut { to { opacity: 0; transform: scaleX(0.6); } }
/* erste Karte dreht sich aus der Mitte auf */
.ps-ov .ps-slot.first { animation: psFirstFlip 0.62s cubic-bezier(.2,.9,.3,1.15) both; }
@keyframes psFirstFlip { 0% { opacity: 0; transform: translateY(-8%) rotateY(85deg) scale(0.86); } 40% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ps-tear-pack, .ps-tear-top, .ps-tear-glow, .ps-tear-rays, .ps-tear-fan .ps-back, .ps-tear-bits i, .ps-tear-flash, .ps-tear-shadow, .ps-ov .ps-slot.first { animation-duration: 0.01s !important; animation-delay: 0s !important; }
  .ps-ov { transition: none; }
}
#psStage { scroll-margin-top: 84px; }

/* Set-Auswahl als Kacheln mit Pack-Bild */
.ps-sets { display: flex; gap: 10px; margin-top: 16px; padding: 4px 2px 8px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; position: relative; }
.ps-set-tile { flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 112px; padding: 10px 8px 9px; border-radius: 14px; border: 1.5px solid var(--card-border); background: rgba(9,12,21,0.55); color: var(--text, #fff); cursor: pointer; transition: border-color 0.15s, transform 0.15s, background 0.15s, box-shadow 0.15s; font: inherit; }
.ps-set-tile img { height: 78px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0,0,0,0.45)); transition: transform 0.2s; }
.ps-set-tile:hover { border-color: rgba(255,255,255,0.28); transform: translateY(-2px); }
.ps-set-tile:hover img { transform: rotate(-3deg) scale(1.04); }
.ps-set-tile.active { border-color: var(--poke-yellow, #facc15); background: rgba(250,204,21,0.08); box-shadow: 0 0 0 1px var(--poke-yellow, #facc15), 0 8px 20px rgba(250,204,21,0.15); }
.ps-game-riftbound .ps-set-tile.active { border-color: #2dd4bf; background: rgba(45,212,191,0.08); box-shadow: 0 0 0 1px #2dd4bf, 0 8px 20px rgba(45,212,191,0.15); }
.ps-set-name { font-size: 0.78rem; font-weight: 800; color: #fff; text-align: center; line-height: 1.2; }
.ps-set-date { font-size: 0.66rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.03em; }
.ps-set-tile:focus-visible { outline: 2px solid var(--poke-cyan, #38bdf8); outline-offset: 2px; }

/* Illustration Rare: Farb-Halo (rotiert, nur transform), schwebende Lichtpunkte, Lichtstreifen ueber der Illustration */
.ps-slot.illu .ps-tilt-in { position: relative; z-index: 1; box-shadow: 0 0 0 2px rgba(216,180,254,0.9), 0 16px 38px rgba(0,0,0,0.55); }
.ps-illu-halo { position: absolute; z-index: 0; left: 50%; top: 50%; width: 132%; aspect-ratio: 1; margin: 0; transform: translate(-50%, -50%) rotate(0deg); border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, #c084fc, #f472b6, #fde68a, #67e8f9, #a7f3d0, #c084fc); filter: blur(26px); opacity: 0; will-change: transform, opacity;
  animation: psIlluIn 0.9s 0.15s ease-out forwards, psIlluSpin 6s linear infinite; }
.ps-bokeh { position: absolute; z-index: 2; inset: -8% -12%; pointer-events: none; overflow: visible; }
.ps-bokeh i { position: absolute; left: var(--x); bottom: 0; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, #fff 0%, var(--c) 35%, rgba(255,255,255,0) 70%); opacity: 0; will-change: transform, opacity; animation: psBokeh var(--d) var(--dl) ease-in-out infinite; }
.ps-illu-sweep { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; pointer-events: none; z-index: 2; }
.ps-illu-sweep::before { content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; transform: skewX(-18deg); background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.0) 20%, rgba(255,240,255,0.55) 50%, rgba(200,240,255,0.25) 65%, rgba(255,255,255,0) 100%); mix-blend-mode: screen; animation: psIlluSweep 3.6s 0.4s cubic-bezier(.45,.05,.4,1) infinite; }
.ps-tile.illu .ps-face { box-shadow: 0 0 0 2px #d8b4fe, 0 0 18px rgba(192,132,252,0.65), 0 0 30px rgba(103,232,249,0.25); }
@keyframes psIlluIn { from { opacity: 0; } to { opacity: 0.7; } }
@keyframes psIlluSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes psBokeh { 0% { opacity: 0; transform: translate(0, 0) scale(0.6); } 20% { opacity: 0.9; } 70% { opacity: 0.6; } 100% { opacity: 0; transform: translate(var(--dx), -320px) scale(1.1); } }
@keyframes psIlluSweep { 0% { left: -60%; } 38%, 100% { left: 125%; } }
@media (prefers-reduced-motion: reduce) { .ps-illu-halo { animation: psIlluIn 0.01s forwards; } .ps-bokeh { display: none; } .ps-illu-sweep::before { animation: none; } }

/* Illustration Rare, Auftritt: graue Skizze, die Farbe wird diagonal hineingemalt; das Motiv zoomt sanft heran; Banner */
.ps-slot.illu .ps-face img { animation: psIlluZoom 1.8s cubic-bezier(.2,.7,.2,1) both; transform-origin: 50% 40%; }
.ps-illu-sketch { position: absolute; inset: 0; z-index: 1; border-radius: 12px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(115deg, transparent 0%, transparent 42%, #000 58%, #000 100%); mask-image: linear-gradient(115deg, transparent 0%, transparent 42%, #000 58%, #000 100%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0; animation: psIlluPaint 1.25s 0.35s cubic-bezier(.55,.1,.35,1) forwards; }
.ps-illu-sketch img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(1.08) sepia(0.15); animation: psIlluZoom 1.8s cubic-bezier(.2,.7,.2,1) both; transform-origin: 50% 40%; }
.ps-illu-badge { position: absolute; z-index: 4; left: 50%; bottom: -15px; transform: translateX(-50%); white-space: nowrap; padding: 6px 14px; border-radius: 99px; font-size: 0.74rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  background: linear-gradient(100deg, #a855f7, #ec4899 45%, #22d3ee); background-size: 200% 100%; box-shadow: 0 6px 18px rgba(168,85,247,0.45); opacity: 0; animation: psIlluBadge 0.6s 1.25s cubic-bezier(.3,1.5,.5,1) forwards, psIlluBadgeShift 4s 1.85s linear infinite; }
@keyframes psIlluZoom { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes psIlluPaint { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0% 0; mask-position: 0% 0; } }
@keyframes psIlluBadge { from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.85); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes psIlluBadgeShift { 0% { background-position: 0% 0; } 50% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .ps-illu-sketch { display: none; } .ps-slot.illu .ps-face img { animation: none; } .ps-illu-badge { animation: psIlluBadge 0.01s forwards; } }
