/* v16 profil: animasi profil rider (A kartu slide untuk misi biasa, D cut-in untuk misi cerita). Tidak menangkap sentuhan. */
.pfl { position:fixed; inset:0; pointer-events:none; z-index:40; font-family:'Rubik',system-ui,sans-serif; overflow:hidden; }
.pfl-face { object-fit:cover; object-position:50% 12%; background:#b9b2a8; border-radius:50%; display:block; -webkit-user-drag:none; user-select:none; }
/* A: kartu kiri-tengah, meluncur dari kiri */
.pfl-A .pfl-card { position:absolute; left:-300px; top:34%; width:min(270px,70vw); background:#fff; color:#1b2433; border-radius:14px; padding:9px 11px; display:flex; gap:10px; align-items:center; box-shadow:0 8px 22px #0008; animation:pflIn .5s cubic-bezier(.2,1.2,.4,1) forwards, pflOut .4s 2.55s ease-in forwards; }
.pfl-A .pfl-face { width:54px; height:54px; flex:none; border:3px solid #2fd07a; }
.pfl-A .pfl-tx b { display:block; font-weight:800; font-size:14px; line-height:1.2; } .pfl-A .pfl-tx span { display:block; font-size:12px; color:#52607a; line-height:1.3; }
.pfl-A .pfl-ok { position:absolute; left:min(250px,64vw); top:calc(34% - 12px); width:34px; height:34px; border-radius:50%; background:#2fd07a; color:#fff; display:grid; place-items:center; font-size:20px; font-weight:800; transform:scale(0); animation:pflPop .4s .45s cubic-bezier(.2,1.6,.4,1) forwards, pflOut .4s 2.55s ease-in forwards; }
@keyframes pflIn { to { left:12px; } } @keyframes pflOut { to { opacity:0; transform:translateX(-30px); } } @keyframes pflPop { to { transform:scale(1); } }
/* D: pita diagonal menyapu, potret zoom dari kanan, teks miring */
.pfl-D .pfl-band { position:absolute; left:-20%; right:-20%; top:36%; height:clamp(96px,22vh,150px); background:linear-gradient(90deg,#ff5a4d,#ff9d3d); transform:skewY(-6deg) translateX(-120%); box-shadow:0 6px 24px #0006; animation:pflWipe .32s ease-out forwards, pflFade .35s 2.05s ease-in forwards; }
.pfl-D.pfl-done .pfl-band { background:linear-gradient(90deg,#ffb800,#fff0a0); }
.pfl-D .pfl-face { position:absolute; right:-200px; top:calc(36% - 16px); width:clamp(96px,24vh,150px); height:clamp(96px,24vh,150px); border:5px solid #fff; box-shadow:0 6px 16px #0008; animation:pflZoom .45s .18s ease-out forwards, pflFade .35s 2.05s ease-in forwards; }
.pfl-D .pfl-tx { position:absolute; left:4%; top:calc(36% + clamp(30px,7vh,52px)); max-width:58%; color:#fff; text-shadow:2px 2px 0 #000; transform:skewY(-6deg); opacity:0; animation:pflTx .3s .28s forwards, pflFade .35s 2.05s ease-in forwards; }
.pfl-D .pfl-tx b { display:block; font-weight:800; font-size:clamp(20px,4vw,30px); line-height:1.1; } .pfl-D .pfl-tx span { display:block; font-size:clamp(11px,1.8vw,14px); line-height:1.3; text-shadow:1px 1px 0 #000; }
.pfl-D.pfl-done .pfl-tx { color:#6b4200; text-shadow:none; } .pfl-D.pfl-done .pfl-tx span { text-shadow:none; }
.pfl-D .pfl-coin { position:absolute; top:-30px; left:calc(var(--i) * 12%); font-size:22px; font-style:normal; animation:pflRain 1.5s linear infinite; animation-delay:calc(var(--i) * .15s); }
@keyframes pflWipe { to { transform:skewY(-6deg) translateX(0); } } @keyframes pflZoom { to { right:3%; } } @keyframes pflTx { from { transform:skewY(-6deg) translateY(14px); } to { opacity:1; transform:skewY(-6deg); } }
@keyframes pflFade { to { opacity:0; } } @keyframes pflRain { to { transform:translateY(105vh) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pfl * { animation-duration:.01s !important; animation-delay:0s !important; } .pfl-A .pfl-card { left:12px; } .pfl-D .pfl-band { transform:skewY(-6deg); } .pfl-D .pfl-face { right:3%; } .pfl-D .pfl-tx { opacity:1; } .pfl-A .pfl-ok { transform:scale(1); } }
html.tc-on .pfl-A .pfl-card { top:26%; width:min(240px,60vw); } html.tc-on .pfl-A .pfl-ok { top:calc(26% - 12px); }
