/* ============================================================
   JAI · RAKSHAK — एक असली केस (cinematic, zero → court)
   Detailed scene player. Reuses jai.css tokens.
   ============================================================ */

/* ---------- landing hero ---------- */
.rk-hero{ min-height:100vh; display:grid; place-items:center; padding:40px; position:relative; overflow:hidden;
  background:radial-gradient(1100px 600px at 50% -10%, #163a72 0%, transparent 60%), linear-gradient(160deg,#0a1f44,#0a1830); color:#eaf0fb; }
.rk-hero .grid-bg{ position:absolute; inset:0; opacity:.4; background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size:46px 46px; mask-image:radial-gradient(900px 600px at 50% 25%,#000,transparent 80%); }
.rk-card{ position:relative; z-index:2; max-width:780px; text-align:center; }
.rk-crest{ width:62px; height:72px; margin:0 auto 18px; }
.rk-kicker{ font-size:12px; letter-spacing:3px; text-transform:uppercase; color:var(--gold-2); }
.rk-hero h1{ font-family:var(--ff-head); font-weight:400; font-size:42px; letter-spacing:1px; margin:10px 0 6px; }
.rk-hero .h-hi{ font-family:var(--ff-hi); font-size:24px; color:#d6e3ff; margin-bottom:18px; }
.rk-hero p{ color:#b9c6de; font-size:15px; line-height:1.7; max-width:620px; margin:0 auto 14px; }
.rk-summary{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin:18px 0 26px; }
.rk-summary .s{ background:rgba(255,255,255,.06); border:1px solid rgba(201,168,76,.3); border-radius:12px; padding:11px 16px; min-width:120px; }
.rk-summary .s b{ display:block; font-family:var(--ff-head); font-size:18px; color:#fff; } .rk-summary .s span{ font-size:11.5px; color:var(--gold-2); font-family:var(--ff-hi); }
.rk-play{ display:inline-flex; align-items:center; gap:12px; background:linear-gradient(160deg,var(--gold),var(--gold-deep)); color:#2a2110; font-weight:700; font-size:16px; padding:15px 30px; border:none; border-radius:40px; cursor:pointer; box-shadow:0 14px 40px rgba(201,168,76,.3); }
.rk-play:hover{ filter:brightness(1.05); } .rk-play .pl{ width:30px; height:30px; border-radius:50%; background:#2a2110; color:var(--gold-2); display:grid; place-items:center; }
.rk-foot{ position:absolute; bottom:18px; left:0; right:0; text-align:center; z-index:2; color:#7d92b8; font-size:12px; }
.rk-scenes{ position:relative; z-index:2; margin-top:22px; color:#8aa0c4; font-size:12px; }

/* ---------- player ---------- */
.rkp{ position:fixed; inset:0; z-index:9500; display:none; flex-direction:column; background-color:#0a1c3d;
  background-image:radial-gradient(1100px 650px at 50% -8%, rgba(28,62,118,.7) 0%, transparent 60%); }
.rkp.show{ display:flex; opacity:1; }
.rkp-prog{ position:absolute; top:0; left:0; height:3px; background:var(--gold); width:0; transition:width .25s linear; box-shadow:0 0 8px var(--gold); z-index:5; }
.rkp-top{ display:flex; align-items:center; gap:14px; padding:14px 26px; border-bottom:1px solid rgba(255,255,255,.08); }
.rkp-top .ic{ width:34px; height:40px; flex:0 0 auto; }
.rkp-top b{ font-family:var(--ff-head); font-size:17px; letter-spacing:1.4px; color:#fff; }
.rkp-top .ph{ font-family:var(--ff-hi); font-size:12px; color:var(--gold-2); margin-left:6px; }
.rkp-top .step{ margin-left:auto; font-size:12px; color:#9fb2d4; border:1px solid rgba(255,255,255,.15); padding:5px 12px; border-radius:20px; font-family:var(--ff-hi); }
.rkp-x{ width:36px; height:36px; border-radius:9px; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.06); color:#dbe6f7; cursor:pointer; display:grid; place-items:center; }
.rkp-stage{ flex:1; position:relative; overflow:hidden; display:grid; place-items:center; padding:22px; }
.rkp-scene{ width:100%; max-width:1040px; height:100%; max-height:580px; display:flex; align-items:center; justify-content:center; }
.rkp-cap{ padding:14px 26px 6px; text-align:center; min-height:78px; }
.rkp-cap b{ display:block; font-size:14px; color:#cdd9ee; margin-bottom:4px; opacity:.9; }
.rkp-cap .hi{ font-family:var(--ff-hi); font-size:20px; color:#fff; line-height:1.45; }
.rkp-ctrl{ display:flex; align-items:center; gap:14px; padding:8px 26px 20px; justify-content:center; flex-wrap:wrap; }
.rkp-dots{ display:flex; gap:6px; } .rkp-dots i{ width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.18); transition:.3s; cursor:pointer; }
.rkp-dots i.on{ background:var(--gold); transform:scale(1.3); box-shadow:0 0 9px rgba(201,168,76,.6); } .rkp-dots i.done{ background:rgba(201,168,76,.45); }
.rkp-btn{ background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); color:#eaf0fb; padding:9px 16px; border-radius:22px; cursor:pointer; font-weight:600; font-size:13px; }
.rkp-btn:hover{ border-color:var(--gold); background:rgba(201,168,76,.14); } .rkp-btn.gold{ background:linear-gradient(160deg,var(--gold),var(--gold-deep)); color:#2a2110; border:none; }
.kind-tag{ font-size:10.5px; letter-spacing:1px; text-transform:uppercase; padding:4px 11px; border-radius:20px; white-space:nowrap; }
.kind-tag.story{ background:rgba(210,72,63,.18); color:#ff9a8f; border:1px solid rgba(210,72,63,.4); }
.kind-tag.app{ background:rgba(61,220,132,.14); color:#7fe3ad; border:1px solid rgba(61,220,132,.35); }

/* ============================================================ STORY ELEMENTS */
.row{ display:flex; align-items:center; justify-content:center; gap:46px; width:100%; flex-wrap:wrap; }
.col{ display:flex; flex-direction:column; align-items:center; gap:12px; }
.actor{ display:flex; flex-direction:column; align-items:center; gap:9px; animation:rkpop .5s cubic-bezier(.2,1.3,.4,1) both; }
.actor .av{ width:100px; height:100px; border-radius:26px; display:grid; place-items:center; font-size:48px; background:linear-gradient(160deg,#16335f,#0d2347); border:1.5px solid rgba(201,168,76,.4); box-shadow:0 14px 40px rgba(0,0,0,.35); }
.actor .av.danger{ border-color:rgba(210,72,63,.7); background:linear-gradient(160deg,#3a1614,#2a0f0d); }
.actor .av.good{ border-color:rgba(61,220,132,.6); }
.actor .nm{ font-size:13px; color:#cdd9ee; font-family:var(--ff-hi); text-align:center; } .actor .nm b{ color:#fff; }
@keyframes rkpop{ from{ opacity:0; transform:translateY(22px) scale(.86);} to{ opacity:1; transform:none;} }
@keyframes rkup{ from{ opacity:0; transform:translateY(18px);} to{ opacity:1; transform:none;} }
.bubble{ position:relative; background:#fff; color:var(--navy); padding:11px 16px; border-radius:14px; font-size:14px; font-weight:600; font-family:var(--ff-hi); max-width:250px; box-shadow:0 10px 30px rgba(0,0,0,.3); animation:rkpop .4s both .3s; }
.bubble.scam{ background:#fde7e4; color:#a3221b; }
.phone{ position:relative; font-size:46px; } .phone .ring{ position:absolute; inset:-8px; border:2px solid var(--gold); border-radius:50%; animation:rkring 1.4s infinite; opacity:0; } .phone .ring:nth-child(2){ animation-delay:.5s; }
@keyframes rkring{ 0%{ transform:scale(.7); opacity:.8;} 100%{ transform:scale(2.1); opacity:0;} }
.coin{ position:absolute; font-size:26px; color:var(--gold-2); animation:rkfly 1.4s ease-in infinite; }
@keyframes rkfly{ 0%{ left:14%; top:46%; opacity:0; transform:scale(.6);} 15%{ opacity:1;} 80%{ opacity:1;} 100%{ left:80%; top:46%; opacity:0; transform:scale(1.1) rotate(220deg);} }
.warrant{ width:170px; background:#fff; border-radius:8px; padding:14px; transform:rotate(-4deg); box-shadow:0 14px 40px rgba(0,0,0,.4); animation:rkpop .5s both .2s; }
.warrant .seal{ width:38px; height:38px; border-radius:50%; border:2px solid #d2483f; color:#d2483f; display:grid; place-items:center; margin:0 auto 6px; font-size:9px; }
.warrant h6{ text-align:center; color:#a3221b; font-size:11px; font-family:var(--ff-hi); } .warrant .ln{ height:5px; background:#eee; border-radius:4px; margin:5px 0; } .warrant .fake{ text-align:center; font-size:9px; color:#d2483f; margin-top:6px; }
.flowarr{ font-size:30px; color:var(--gold); animation:rknud 1.2s ease-in-out infinite; } @keyframes rknud{ 50%{ transform:translateX(8px);} }
.clock{ font-size:60px; animation:rktick 1s steps(8) infinite; } @keyframes rktick{ to{ transform:rotate(360deg);} }
.note{ color:#9fb2d4; font-size:13px; margin-top:14px; font-family:var(--ff-hi); text-align:center; }
.tick{ color:#3ddc84; font-size:54px; animation:rkpop .5s both; }
.warnflag{ font-family:var(--ff-hi); color:#ffd27f; font-size:14px; background:rgba(214,138,30,.14); border:1px solid rgba(214,138,30,.4); padding:8px 16px; border-radius:10px; margin-top:14px; }

/* ============================================================ APP-WINDOW (real software look) */
.appwin{ width:100%; max-width:880px; background:#fff; border-radius:16px; box-shadow:0 18px 50px rgba(0,0,0,.32); overflow:hidden; animation:rkup .5s both; border:1px solid rgba(201,168,76,.3); }
.appwin .aw-bar{ display:flex; align-items:center; gap:9px; padding:11px 16px; background:linear-gradient(160deg,#0a1f44,#12305f); }
.appwin .aw-bar .dotr{ width:11px; height:11px; border-radius:50%; } .aw-bar .r{ background:#ff5f57;} .aw-bar .y{ background:#febc2e;} .aw-bar .g{ background:#28c840;}
.appwin .aw-bar .tt{ margin-left:8px; color:#cdd9ee; font-size:12px; } .appwin .aw-bar .tt b{ color:#fff; } .appwin .aw-bar .live{ margin-left:auto; font-size:11px; color:#7fe3ad; }
.appwin .aw-body{ padding:20px; max-height:430px; overflow:auto; background:var(--bg-2); }
.aw-h{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.aw-h h4{ font-family:var(--ff-head); font-weight:400; font-size:18px; color:var(--navy); letter-spacing:.4px; } .aw-h h4 .hi{ font-family:var(--ff-hi); font-size:14px; color:var(--ink-2); }
.aw-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; } .aw-grid.c1{ grid-template-columns:1fr; }
.fbox{ background:#fff; border:1px solid var(--border); border-radius:10px; padding:11px 14px; animation:rkup .4s both; }
.fbox.flash{ animation:rkup .4s both, fl 1.2s ease; } @keyframes fl{ 0%{ background:#fbf1d2;} 100%{ background:#fff;} }
.fbox .k{ font-size:10.5px; text-transform:uppercase; letter-spacing:.4px; color:var(--ink-3); } .fbox .v{ font-size:14px; color:var(--ink); font-weight:600; margin-top:3px; } .fbox .v.hi{ font-family:var(--ff-hi); }
.complaint{ background:#fff; border:1px solid var(--border); border-radius:10px; padding:14px; font-family:var(--ff-hi); font-size:14px; line-height:1.7; color:var(--ink); }
.complaint mark{ background:#fde7b0; color:#7a5a00; padding:1px 5px; border-radius:4px; font-weight:600; }
.secbadge{ display:inline-flex; flex-direction:column; gap:2px; padding:8px 13px; border-radius:10px; background:var(--blue-bg); color:var(--blue); margin:4px; font-weight:700; font-size:13px; animation:rkpop .4s both; border:1px solid #cdddf7; }
.secbadge small{ font-weight:500; font-size:10px; color:var(--ink-2); font-family:var(--ff-hi); }
.notice{ background:#fff; border:1px solid var(--border); border-left:3px solid var(--gold); border-radius:9px; padding:12px 14px; animation:rkup .4s both; }
.notice b{ color:var(--navy); font-size:13.5px; } .notice .sub{ font-size:12px; color:var(--ink-2); font-family:var(--ff-hi); margin-top:3px; }
.notice .law{ font-family:var(--ff-mono); font-size:11px; color:var(--gold-deep); margin-top:5px; }
.stamp2{ display:inline-block; font-family:var(--ff-head); font-size:18px; letter-spacing:1.5px; padding:8px 18px; border:2.5px solid; border-radius:10px; transform:rotate(-7deg); animation:rkslam .5s cubic-bezier(.2,1.5,.4,1) both; }
.stamp2.hold{ color:#1e9e6a; border-color:#1e9e6a; } .stamp2.ready{ color:#1e9e6a; border-color:#1e9e6a; } .stamp2.court{ color:#2563c9; border-color:#2563c9; }
@keyframes rkslam{ 0%{ transform:rotate(-7deg) scale(2.2); opacity:0;} 60%{ opacity:1;} 100%{ transform:rotate(-7deg) scale(1);} }
.seal-row{ display:flex; align-items:center; gap:10px; font-size:13px; color:var(--green); background:var(--green-bg); border:1px solid #bfe6d2; padding:9px 13px; border-radius:9px; font-family:var(--ff-hi); animation:rkup .4s both; }
.seal-row .mono{ font-family:var(--ff-mono); font-size:11px; color:var(--ink-2); }
.cert2{ border:2px solid var(--navy); border-radius:10px; padding:16px; background:linear-gradient(180deg,#fffdf6,#fff); position:relative; }
.cert2 h5{ font-family:var(--ff-head); text-align:center; color:var(--navy); font-size:14px; font-weight:400; } .cert2 .cs{ text-align:center; font-size:10.5px; color:var(--ink-3); margin-bottom:8px; font-family:var(--ff-hi); }
.cert2 .cr{ display:flex; gap:8px; font-size:11.5px; padding:4px 0; border-bottom:1px dotted var(--border-2); } .cert2 .cr b{ min-width:96px; color:var(--ink-2); font-family:var(--ff-hi); }
.pipe2{ display:flex; gap:0; align-items:center; flex-wrap:wrap; margin-bottom:14px; }
.pipe2 .st{ display:flex; align-items:center; gap:7px; padding:7px 11px; background:#fff; border:1px solid var(--border); border-radius:9px; font-size:11.5px; font-weight:600; color:var(--ink-2); font-family:var(--ff-hi); }
.pipe2 .st .n{ width:18px; height:18px; border-radius:50%; background:var(--ink-3); color:#fff; display:grid; place-items:center; font-size:10px; }
.pipe2 .st.done{ border-color:var(--green); color:var(--green);} .pipe2 .st.done .n{ background:var(--green);} .pipe2 .st.now{ border-color:var(--gold); color:var(--gold-deep);} .pipe2 .st.now .n{ background:var(--gold); color:#2a2110;}
.pipe2 .ar{ width:16px; height:2px; background:var(--border-2); }
.medha-line{ display:flex; align-items:center; gap:10px; background:linear-gradient(160deg,#0d2552,#0a1f44); color:#dbe6f7; border-radius:10px; padding:11px 14px; font-family:var(--ff-hi); font-size:13px; margin-bottom:12px; }
.medha-line .mi{ width:28px; height:28px; border-radius:8px; background:linear-gradient(150deg,var(--gold),var(--gold-deep)); color:#2a2110; display:grid; place-items:center; font-family:var(--ff-head); flex:0 0 auto; }
.cursor::after{ content:"▋"; color:var(--gold-deep); animation:bk 1s step-end infinite; } @keyframes bk{ 50%{ opacity:0; } }

/* money-trail graph */
.tgraph line{ stroke-dasharray:300; stroke-dashoffset:300; animation:rkdraw .8s forwards; } @keyframes rkdraw{ to{ stroke-dashoffset:0; } }
.tgraph g.node{ opacity:0; animation:rkpop .5s forwards; }

@media(max-width:720px){ .aw-grid{ grid-template-columns:1fr; } .rk-hero h1{ font-size:30px; } }
