/* Nour on the campaign pages (coach.js): the one-time arrival spotlight and the docked companion. */
#pw-coach{position:fixed;inset:0;z-index:12000;pointer-events:none}
#pw-coach .pwc-ring{position:fixed;border-radius:18px;box-shadow:0 0 0 9999px rgba(6,6,10,.62),0 0 0 2px #ff8a3d,0 0 28px 4px rgba(255,138,61,.45);transition:all .25s ease;pointer-events:none}
#pw-coach .pwc-bubble{position:fixed;pointer-events:auto;display:grid;grid-template-columns:44px 1fr;gap:6px 12px;align-items:start;padding:14px;border-radius:16px;background:#17151c;border:1px solid rgba(255,138,61,.55);box-shadow:0 18px 50px rgba(0,0,0,.55);color:#f4ece4;font:500 14px/1.45 inherit}
#pw-coach .pwc-bubble img{width:44px;height:44px;border-radius:50%;object-fit:cover;background:#2a2430}
#pw-coach .pwc-bubble p{margin:0}
#pw-coach .pwc-bubble button{grid-column:2;justify-self:start;margin-top:4px;padding:7px 16px;border:0;border-radius:999px;background:#ff8a3d;color:#1a1208;font-weight:700;cursor:pointer}
@media (prefers-reduced-motion:reduce){#pw-coach .pwc-ring{transition:none}}

/* Always visible in bottom-right corner above page cards (z:4000), never above Gift spotlight (z:9000+) or top-layer <dialog> modals */
#pw-nour{position:fixed;inset-inline-end:20px;bottom:20px;z-index:4000;width:min(360px,calc(100vw - 32px));max-height:min(70vh,640px);overflow:auto;border-radius:20px;background:linear-gradient(180deg,#1c1820,#141217);border:1px solid rgba(255,138,61,.4);box-shadow:0 24px 60px rgba(0,0,0,.55);color:#f4ece4;font-size:14px;line-height:1.45}
#pw-nour.is-min{width:auto;max-height:none;overflow:visible;background:none;border:0;box-shadow:none}
#pw-nour img{border-radius:50%;object-fit:cover;background:#2a2430;flex:none}
#pw-nour .pwn-head{display:flex;align-items:flex-start;gap:12px;padding:14px 12px 14px 14px;position:sticky;top:0;background:linear-gradient(180deg,#1f1a22,#1a161d);z-index:1}
#pw-nour .pwn-head img{width:44px;height:44px;box-shadow:0 0 0 2px #ff8a3d,0 0 0 6px rgba(255,138,61,.14),0 6px 18px rgba(255,138,61,.25)}
#pw-nour .pwn-who{flex:1;min-width:0;display:grid;gap:4px}#pw-nour .pwn-who small{font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:#ff9d5c;font-weight:700}#pw-nour .pwn-who p{font-size:13.5px;line-height:1.45;color:#f3ebe4}#pw-nour .pwn-who .pwn-acts{margin-top:4px}
#pw-nour .pwn-tools{display:inline-flex;align-items:center;gap:6px;flex:none;margin-top:-2px}
#pw-nour .pwn-min,#pw-nour .pwn-sound{flex:none;width:28px;height:28px;display:grid;place-items:center;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.12);background:transparent;color:#b9ab9f;cursor:pointer;font-size:16px;line-height:1;transition:background .15s,color .15s,border-color .15s,transform .15s}
#pw-nour .pwn-min:hover,#pw-nour .pwn-sound:hover{background:rgba(255,255,255,.08);color:#fff;transform:scale(1.06)}
#pw-nour .pwn-sound[aria-pressed=true]{color:#ff9d5c;border-color:rgba(255,138,61,.42);background:rgba(255,138,61,.1)}
#pw-nour .pwn-sound svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#pw-nour .pwn-sound[aria-pressed=false] .on-path,#pw-nour .pwn-sound[aria-pressed=true] .muted-path{display:none}
#pw-nour section{padding:12px 14px}#pw-nour section+section{border-top:1px solid rgba(255,255,255,.06)}
#pw-nour section>small{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#ff9d5c;font-weight:700;margin-bottom:4px}
#pw-nour p{margin:0}
#pw-nour ul{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:10px}
#pw-nour .pwn-insight{display:grid;grid-template-columns:32px 1fr;gap:10px;padding:10px;border-radius:14px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}
#pw-nour .pwn-insight img{width:32px;height:32px}
#pw-nour .pwn-insight.pwn-danger{border-color:rgba(255,92,92,.45)}#pw-nour .pwn-insight.pwn-warn{border-color:rgba(255,190,92,.4)}
#pw-nour .pwn-insight-body b{font-size:12px;color:#ffb27d}
#pw-nour .pwn-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;align-items:center}
#pw-nour .pwn-acts input{flex:1 1 100%;min-width:0;padding:7px 10px;border-radius:10px;border:1px solid rgba(255,138,61,.6);background:#0f0d12;color:inherit;font:inherit}
#pw-nour button{font:inherit;cursor:pointer}
#pw-nour .pwn-primary{padding:7px 15px;border:0;border-radius:999px;background:linear-gradient(180deg,#ff9a52,#ff7e29);color:#1a1208;font-weight:750;box-shadow:0 6px 18px rgba(255,138,61,.28);transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
#pw-nour .pwn-primary:hover{transform:translateY(-1px) scale(1.02);box-shadow:0 10px 24px rgba(255,138,61,.42);filter:brightness(1.05)}
#pw-nour .pwn-primary:active{transform:translateY(0) scale(.98)}
#pw-nour .pwn-pen{display:inline-flex;align-items:center;gap:4px;padding:5px 12px;border-radius:999px;border:1px solid rgba(255,138,61,.6);background:rgba(255,138,61,.1);color:#ffb27d;font-weight:600}
#pw-nour .pwn-link{padding:5px 8px;border:0;background:none;color:#b9ab9f;text-decoration:underline}
#pw-nour .pwn-flash{padding:8px 14px 12px;color:#9be3b0;font-size:13px}
#pw-nour .pwn-fab{position:relative;width:60px;height:60px;padding:0;border-radius:50%;border:2px solid #ff8a3d;background:#1c1820;box-shadow:0 12px 30px rgba(0,0,0,.5),0 0 0 0 rgba(255,138,61,.35);transition:transform .2s cubic-bezier(.2,.9,.3,1.2),box-shadow .2s ease}
#pw-nour .pwn-fab:hover{transform:translateY(-2px) scale(1.06);box-shadow:0 16px 34px rgba(0,0,0,.6),0 0 0 6px rgba(255,138,61,.18)}
#pw-nour .pwn-fab img{width:100%;height:100%}
#pw-nour .pwn-badge{position:absolute;top:-4px;inset-inline-end:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#ff5c3d;color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center;box-shadow:0 4px 10px rgba(255,92,61,.5);animation:pwnBadgePop .45s cubic-bezier(.2,1.2,.3,1)}
@keyframes pwnBadgePop{0%{transform:scale(.4)}65%{transform:scale(1.22)}100%{transform:scale(1)}}
.pwn-pulse{outline:2px solid #ff8a3d!important;outline-offset:4px;animation:pwnPulse 1.2s ease-in-out 2}
.pwn-card-pulse{box-shadow:0 0 0 2px #ff8a3d,0 0 38px rgba(255,138,61,.36)!important;transition:box-shadow .3s ease!important}
@keyframes pwnPulse{50%{outline-offset:10px;outline-color:rgba(255,138,61,.25)}}
@media (prefers-reduced-motion:reduce){.pwn-pulse,#pw-nour .pwn-badge{animation:none}}

#pw-nour .pwn-crew{padding:0 14px 12px;border-top:1px solid rgba(255,255,255,.06)}
#pw-nour .pwn-crew-toggle{display:flex;align-items:center;gap:8px;width:100%;padding:10px 0;border:0;background:none;color:#e8dcd2;font-size:12.5px;font-weight:600;text-align:start}
#pw-nour .pwn-crew-toggle span{flex:1}
#pw-nour .pwn-count{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:rgba(255,138,61,.16);color:#ffb27d;font-size:11.5px;display:grid;place-items:center}
#pw-nour .pwn-caret{width:7px;height:7px;border:solid #b9ab9f;border-width:0 1.5px 1.5px 0;transform:rotate(45deg) translateY(-2px);transition:transform .2s}
#pw-nour .pwn-crew-toggle[aria-expanded=true] .pwn-caret{transform:rotate(-135deg) translateY(-1px)}
#pw-nour .pwn-crew-toggle:focus-visible,#pw-nour .pwn-min:focus-visible,#pw-nour .pwn-sound:focus-visible,#pw-nour .pwn-primary:focus-visible{outline:2px solid #ffc398;outline-offset:2px}
#pw-nour .pwn-crew ul{margin:0}
#pw-nour:not(.is-min){animation:pwnIn .35s cubic-bezier(.2,.8,.2,1)}
@keyframes pwnIn{from{opacity:0;transform:translateY(12px) scale(.98)}}
html.pwn-docked #view{padding-bottom:170px}
@media (prefers-reduced-motion:reduce){#pw-nour:not(.is-min){animation:none}}
@media (max-width:720px){#pw-nour{bottom:calc(84px + env(safe-area-inset-bottom));inset-inline-end:12px;width:calc(100vw - 24px);max-height:60vh}#pw-nour.is-min{width:auto}html.pwn-docked #view{padding-bottom:240px}}
