/* v159: thin bar while a pack loads, and the daily Reader Pass (js/reader-pass.js). Loads last. */
body.pack-loading::before { content: ""; position: fixed; z-index: 9999; left: 0; top: 0; height: 3px; width: 40%; background: #f2c14e; border-radius: 0 3px 3px 0; animation: pack-bar 1.1s ease-in-out infinite; }
@keyframes pack-bar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.pts-badge.rp-bump { transform: scale(1.12); transition: transform .3s; }

.rp-veil { --tier-rgb: 200,214,230; position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; overflow: hidden; opacity: 0; transition: opacity .35s;
  background: radial-gradient(ellipse at 50% 45%, rgba(30,24,40,.93), rgba(5,4,8,.97) 70%); color: #f3efe6; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.rp-veil.rp-on { opacity: 1; }
.rp-rays { position: absolute; left: 50%; top: 44%; width: 900px; height: 900px; margin: -450px 0 0 -450px; opacity: .22; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(var(--tier-rgb),.45) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 55%); mask: radial-gradient(circle, #000 0 18%, transparent 55%); }
.rp-play .rp-rays { animation: rp-spin 40s linear infinite; }
@keyframes rp-spin { to { transform: rotate(360deg); } }
.rp-stage { position: relative; width: min(470px, 92vw); text-align: center; }
.rp-top { display: flex; align-items: flex-end; justify-content: center; gap: 14px; margin-bottom: 14px; }
.rp-lbl { font: 800 12px system-ui, sans-serif; letter-spacing: .3em; color: #b9b2a3; text-transform: uppercase; }
.rp-flip span { display: grid; place-items: center; width: 44px; height: 58px; border-radius: 7px; background: linear-gradient(#26222e 49%, #1a1720 51%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 6px 14px rgba(0,0,0,.5); font: 900 40px/1 "Arial Black", Impact, system-ui, sans-serif; color: rgb(var(--tier-rgb)); }
.rp-play .rp-flip span { animation: rp-flip .5s 1.25s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes rp-flip { 0% { transform: perspective(300px) rotateX(-90deg); opacity: .2; } 100% { transform: none; opacity: 1; } }

.rp-pass { position: relative; border-radius: 18px; padding: 16px 18px 18px; text-align: left; overflow: hidden;
  background: linear-gradient(135deg, #1b1922 0%, #24212c 45%, #15131a 100%);
  box-shadow: 0 0 0 1px rgba(var(--tier-rgb),.55), 0 0 30px rgba(var(--tier-rgb),.18), 0 24px 50px rgba(0,0,0,.6); }
.rp-pass::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 85% -10%, rgba(var(--tier-rgb),.35), transparent 45%), repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 6px); }
.rp-sheen { position: absolute; top: -40%; bottom: -40%; width: 38%; left: -60%; pointer-events: none; transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(180,255,240,.14) 40%, rgba(255,210,250,.18) 55%, rgba(255,240,180,.14) 70%, transparent); }
.rp-play .rp-sheen { animation: rp-sheen 1.6s .35s ease-in-out both, rp-sheen 1.6s 2.4s ease-in-out both; }
@keyframes rp-sheen { from { left: -60%; } to { left: 130%; } }
.rp-play .rp-pass { animation: rp-rise .55s cubic-bezier(.2,.9,.3,1.15) both, rp-impact .3s 1.02s ease-out; }
@keyframes rp-rise { from { transform: translateY(40px) rotateX(25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rp-impact { 30% { transform: translateY(4px) scale(.985); } 70% { transform: translateY(-1px); } }
.rp-ph { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rp-brand { font: 800 11px system-ui, sans-serif; letter-spacing: .28em; color: #b9b2a3; text-transform: uppercase; }
.rp-who { font: 800 20px/1.15 system-ui, sans-serif; margin-top: 3px; overflow-wrap: anywhere; }
.rp-tier { flex: none; font: 900 11px system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; color: #120f16;
  background: linear-gradient(135deg, rgb(var(--tier-rgb)), rgba(var(--tier-rgb),.65)); box-shadow: 0 0 12px rgba(var(--tier-rgb),.5); }
.rp-slots { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.rp-slot { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; }
.rp-slot::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.18); }
.rp-slot small { position: absolute; bottom: -19px; left: 0; right: 0; text-align: center; font: 700 10px system-ui, sans-serif; letter-spacing: .12em; color: #9a93a6; white-space: nowrap; }
.rp-seal { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; color: rgb(var(--tier-rgb));
  background: radial-gradient(circle, rgba(var(--tier-rgb),.16) 0 55%, transparent 56%);
  box-shadow: inset 0 0 0 3px rgba(var(--tier-rgb),.9), inset 0 0 0 8px rgba(var(--tier-rgb),.45); filter: drop-shadow(0 0 6px rgba(var(--tier-rgb),.35)); }
.rp-seal svg { width: 50%; height: 50%; }
.rp-slot:nth-child(1) .rp-seal { transform: rotate(-10deg); } .rp-slot:nth-child(2) .rp-seal { transform: rotate(7deg); } .rp-slot:nth-child(3) .rp-seal { transform: rotate(-4deg); }
.rp-slot:nth-child(4) .rp-seal { transform: rotate(12deg); } .rp-slot:nth-child(5) .rp-seal { transform: rotate(-8deg); }
.rp-today .rp-seal { opacity: 0; }
.rp-play .rp-today .rp-seal { animation: rp-slam .32s .78s cubic-bezier(.5,0,.75,0) forwards; }
@keyframes rp-slam { 0% { opacity: 0; transform: translateY(-70px) scale(2.2) rotate(-25deg); } 85% { opacity: 1; } 100% { opacity: 1; transform: rotate(-6deg); } }
.rp-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgb(var(--tier-rgb)); opacity: 0; pointer-events: none; }
.rp-play .rp-today .rp-ring { animation: rp-ring .7s 1.08s ease-out; }
@keyframes rp-ring { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(2.4); } }
.rp-spark { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: rgb(var(--tier-rgb)); opacity: 0; pointer-events: none; }
.rp-play .rp-today .rp-spark { animation: rp-spark .6s 1.08s ease-out; }
@keyframes rp-spark { 0% { opacity: 1; transform: translate(0,0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.4); } }
.rp-meta { position: relative; display: flex; justify-content: space-between; margin-top: 30px; font: 700 11px ui-monospace, Menlo, monospace; letter-spacing: .12em; color: #9a93a6; }
.rp-reward { margin-top: 16px; min-height: 30px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.rp-pill { font: 800 14px system-ui, sans-serif; padding: 6px 12px; border-radius: 99px; background: rgba(var(--tier-rgb),.14); color: rgb(var(--tier-rgb)); box-shadow: inset 0 0 0 1px rgba(var(--tier-rgb),.5); opacity: 0; }
.rp-play .rp-pill { animation: rp-pop .45s 1.45s cubic-bezier(.3,1.6,.5,1) forwards; } .rp-play .rp-pill.rp-p2 { animation-delay: 1.65s; }
@keyframes rp-pop { from { opacity: 0; transform: translateY(8px) scale(.8); } to { opacity: 1; transform: none; } }
.rp-next { color: #c9c2b3; font-size: 14px; margin: 10px 0 0; }
.rp-row { margin-top: 14px; display: flex; justify-content: center; }
.rp-go { background: rgb(var(--tier-rgb)); color: #120f16; border: 0; border-radius: 12px; padding: 11px 22px; min-height: 44px; font: 900 14px system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 18px rgba(var(--tier-rgb),.35); }
.rp-go:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.rp-load { margin: 14px auto 0; width: 60%; height: 3px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.rp-load i { display: block; height: 100%; width: 0; background: rgba(var(--tier-rgb),.8); transition: width .4s; }
.rp-loadtx { font: 700 10.5px system-ui, sans-serif; letter-spacing: .2em; color: #8f8899; text-transform: uppercase; margin-top: 6px; min-height: 1.2em; }
@media (max-height: 520px) { .rp-top { margin-bottom: 8px; } .rp-flip span { height: 46px; font-size: 32px; } .rp-pass { padding: 12px 14px 14px; } .rp-meta { margin-top: 26px; } }
@media (prefers-reduced-motion: reduce) {
  .rp-veil, .rp-veil * { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
  .rp-rays { display: none; } .rp-sheen, .rp-ring, .rp-spark { display: none; }
  body.pack-loading::before { animation: none; width: 100%; opacity: .6; }
}
