/* Story player, Materials station grid and premium animated charts for WealthSpace Box. */
.st-back{position:fixed;inset:0;z-index:50;background:rgba(20,12,48,.72);display:flex;align-items:center;justify-content:center;padding:16px;animation:ws-fade .25s ease-out both}
.st{position:relative;width:100%;max-width:440px;min-height:min(640px,calc(100vh - 32px));max-height:calc(100vh - 32px);overflow:auto;border-radius:22px;padding:18px 20px 16px;display:flex;flex-direction:column;gap:12px;color:#fff;
  background:radial-gradient(120% 80% at 100% 0%,#9440B0 0%,transparent 55%),radial-gradient(90% 70% at 0% 100%,#FF8A3D 0%,transparent 50%),linear-gradient(160deg,#2A1766,#4B2FA8 60%,#6A2E9E);box-shadow:0 30px 80px rgba(0,0,0,.45)}
.st-segs{display:flex;gap:4px}
.st-segs span{flex:1;height:4px;border-radius:2px;background:rgba(255,255,255,.28);overflow:hidden}
.st-segs i{display:block;height:100%;width:0;background:#fff;border-radius:2px}
.st-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.st-chip{font-size:.78rem;font-weight:600;background:rgba(255,255,255,.16);padding:5px 10px;border-radius:999px}
.st-x{width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;font-size:1.5rem;line-height:1;cursor:pointer}
.st-stage{flex:1;display:flex;flex-direction:column;justify-content:center;gap:12px;animation:st-in .45s ease-out both}
.st-stage>*{animation:st-in .5s ease-out both}
.st-stage>*:nth-child(2){animation-delay:.08s}.st-stage>*:nth-child(3){animation-delay:.16s}.st-stage>*:nth-child(4){animation-delay:.26s}.st-stage>*:nth-child(5){animation-delay:.36s}
@keyframes st-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.st-who{display:flex;align-items:center;gap:10px;font-weight:700}
.st-who .char{border:3px solid rgba(255,255,255,.6);background:#fff}
.st-k{font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:#FFD2B0;font-weight:700}
.st-h{font-family:var(--display);font-size:1.75rem;font-weight:800;line-height:1.2;margin:0}
.st-t{font-size:1.02rem;line-height:1.55;color:#F1ECFF}
.st-nav{display:flex;justify-content:space-between;gap:8px}
.st-nav .btn{min-height:44px;flex:1;background:rgba(255,255,255,.14);border-color:transparent;color:#fff}
.st-nav .btn.primary{background:#fff;color:#2A1766}
.st-nav .btn:disabled{opacity:.4}
.st-end{display:flex;gap:8px;flex-wrap:wrap}
.st-end .btn{background:rgba(255,255,255,.16);border-color:transparent;color:#fff}
.st-end .btn.primary{background:#FF8A3D;color:#1D1442}
.st-play{white-space:nowrap}
#ws-journey .next .st-play{background:transparent;border-color:rgba(255,255,255,.6);color:#fff}
#ws-journey .next>span{flex:1 1 200px}

/* premium bars: a lit front face, a darker side and a top cap, growing up into place */
.st-chart,.ws-chart{display:flex;align-items:flex-end;gap:14px;height:170px;padding:8px 6px 0;perspective:600px}
.ws-chart{height:200px;gap:10px}
.st-col,.ws-col{flex:1 1 0;min-width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;font-size:.8rem}
.st-col b{font-family:var(--display);font-size:1rem}
.st-col em{font-style:normal;color:#E2DAFF;font-size:.78rem;text-align:center}
.st-col u,.ws-col u{position:relative;display:block;width:70%;max-width:56px;border-radius:4px 4px 0 0;transform-origin:bottom;animation:bar-up .9s cubic-bezier(.2,.8,.2,1) both;
  background:linear-gradient(90deg,#FFB07A,#FF8A3D 55%,#E2622A);box-shadow:8px 0 0 -1px #B9461C,0 10px 18px rgba(0,0,0,.25)}
.st-col u:before,.ws-col u:before{content:"";position:absolute;left:0;right:-8px;top:-7px;height:8px;background:#FFC89F;transform:skewX(-45deg);transform-origin:bottom left;border-radius:3px 3px 0 0}
.ws-col u{background:linear-gradient(90deg,#7A5BE0,#5B3FD0 55%,#3A2179);box-shadow:8px 0 0 -1px #2A1766,0 10px 18px rgba(58,33,121,.22)}
.ws-col u:before{background:#A592F0}
.ws-col:nth-child(-n+3) u{background:linear-gradient(90deg,#FFB07A,#FF8A3D 55%,#E2622A);box-shadow:8px 0 0 -1px #B9461C,0 10px 18px rgba(226,98,42,.25)}
.ws-col:nth-child(-n+3) u:before{background:#FFC89F}
.ws-col:nth-child(n) u{animation-delay:calc(var(--i,0) * 60ms)}
@keyframes bar-up{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.ws-meter u{animation:meter-in 1.2s cubic-bezier(.2,.8,.2,1) both;transform-origin:left}
@keyframes meter-in{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.ws-tile{position:relative;overflow:hidden;box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 8px 20px rgba(58,33,121,.07);animation:ws-rise .5s ease-out both}
.ws-tile:after{content:"";position:absolute;right:-30px;top:-30px;width:90px;height:90px;border-radius:50%;background:rgba(255,255,255,.35)}

/* Materials: one card per station */
.mat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.mat-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px;min-width:0;box-shadow:0 8px 20px rgba(58,33,121,.06)}
.mat-card .num{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;font:800 1.1rem var(--display);
  background:linear-gradient(135deg,#5B3FD0,#9440B0 60%,#FF8A3D);box-shadow:0 6px 14px rgba(91,63,208,.3)}
.mat-card .row1{display:flex;gap:12px;align-items:center}
.mat-card .row1 div{display:flex;flex-direction:column;min-width:0}
.mat-card .acts{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto}
.mat-card .acts .btn{text-decoration:none;display:inline-flex;align-items:center}
.mat-read{white-space:pre-wrap;max-width:68ch}
@media (prefers-reduced-motion: reduce){.st-stage,.st-stage>*,.st-col u,.ws-col u,.ws-meter u,.ws-tile{animation:none}}
.mat-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
a.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.view>.block>.btn.sm:first-child{align-self:flex-start}
