/* SingularityDAO: the vault as a film (tools/singularitydao/sd_film.py, motion in assets/js/singularitydao.js).
   His dynBTC page is built at 1200px and sits under a camera; GSAP frames each beat at a readable size. Product UI type
   is his, in his own pixels (the 1200px page), so it sits outside the site's type scale like every other screen. */
.sd-film .sdf-win { position: relative; }
.sdf-view { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; background: #110D1C; container-type: inline-size; }
.sdf-cam { position: absolute; left: 0; top: 0; width: 1200px; transform-origin: 0 0; will-change: transform; }
.sdf-cam .dz-app { pointer-events: none; }
.sd-film .sd-fitwrap { display: none; }

/* his Pro panels, driven by the film (height and opacity) instead of the old grid-row transition */
.sd-film .dz-pro { display: block; grid-template-rows: none; height: 0; opacity: 0; overflow: hidden; transition: none; }
.sd-film .dz-pro-in { overflow: visible; }
.sd-film .dz-mode button { transition: none; }

/* the unlock date under his chips: the one line a lock was missing */
.sdf-unl { display: flex; align-items: center; gap: 8px; min-height: 20px; margin: 12px 0 -2px !important; color: #94DBC0; font-size: 13px; font-weight: 500; }
.sdf-unl-t { display: inline-block; }
.sd-film .dz-chip, .sd-film .dz-tr, .sd-film .dz-type { transition: none; }
.sd-film .dz-in b { transition: none; }

/* the two steps: a tick lands on 1 when it is signed */
.sd-film .dz-steps b, .sd-film .dz-steps span { display: inline-flex; align-items: center; gap: 6px; }
.sdf-tick { display: inline-grid; place-items: center; width: 0; height: 18px; overflow: hidden; border-radius: 50%; background: #54FAAA; color: #1E192C; }
.sdf-tick .sdi { width: 13px !important; height: 13px !important; stroke-width: 3; }
.sd-film .dz-go { position: relative; overflow: hidden; transition: none; }
.sdf-go-t { display: inline-block; }
.sdf-spin { position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; opacity: 0; }

/* the new position lands at the top of his list */
.sdf-new { height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; overflow: hidden; box-shadow: inset 0 0 0 1.5px rgba(84, 250, 170, 0); }

/* the pointer: kept the same size on screen whatever the camera's zoom */
.sdf-cur { position: absolute; left: 0; top: 0; z-index: 5; width: 26px; height: 26px; pointer-events: none; transform-origin: 3px 2px; opacity: 0; }
.sdf-ptr { position: relative; z-index: 1; display: block; width: 100%; height: 100%; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45)); }
.sdf-tap { position: absolute; left: -11px; top: -12px; width: 28px; height: 28px; border-radius: 50%; background: rgba(204, 164, 255, 0.55); opacity: 0; transform: scale(0.3); }

/* the wallet confirmation: a quiet sheet in his colours, top right like a wallet extension (never a real wallet's brand) */
.sdf-wal { position: absolute; z-index: 6; top: 3.2cqi; left: 3.2cqi; width: clamp(240px, 31cqi, 330px); padding: 18px; border-radius: 16px; background: #1E192C;
  box-shadow: 0 0 0 1px rgba(204, 164, 255, 0.18), 0 30px 60px -20px rgba(0, 0, 0, 0.7); color: #fff; font: 400 13px/1.45 'FB Poppins', var(--sans); opacity: 0; visibility: hidden; }
.sdf-wal p { margin: 0; }
.sdf-wh { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 14px !important; border-bottom: 1px solid #2E2643; color: #CCA4FF; font-weight: 600; }
.sdf-wh .sdi { width: 18px; height: 18px; }
.sdf-wh span { margin-left: auto; color: #726583; font-weight: 400; font-size: 12px; }
.sdf-wt { font-size: 16px; font-weight: 600; line-height: 1.3; }
.sdf-ws { margin: 6px 0 12px !important; color: #9C8FB0; font-size: 12px; }
.sdf-wr { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #2A2340; color: #9C8FB0; }
.sdf-wr b { color: #fff; font-weight: 500; text-align: right; }
.sdf-wb { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px !important; }
.sdf-wb span { padding: 11px; border-radius: 10px; text-align: center; font-weight: 600; }
.sdf-rej { box-shadow: inset 0 0 0 1.5px #3A3150; color: #9C8FB0; }
.sdf-ok { background: #54FAAA; color: #1E192C; }

@media (max-width: 700px) {
  .sdf-view { aspect-ratio: 4 / 5.2; }
  .sd-film .dz-seg { visibility: hidden; }   /* the camera's phone frames never include his chart switch */
  .sdf-wal { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; }
}

/* the beats fill with the film itself (set by the script), never a fixed CSS clock */
.sd-film .sd-pd-bar i { animation: none !important; width: var(--f, 0%) !important; background: #54FAAA; }
.sd-film .sd-vbeat { opacity: 0.45; }
.sd-film[data-step="0"] [data-b="0"], .sd-film[data-step="1"] [data-b="1"], .sd-film[data-step="2"] [data-b="2"], .sd-film[data-step="3"] [data-b="3"] { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sd-film .sd-vbeat { opacity: 1; } .sd-film .sd-pd-bar i { width: 100% !important; } }

/* the DynaVaults list, driven (sd_film.list_live): his select opens on its options; the pointer works the page */
.dz-list { position: relative; }
.dz-list .dz-select { position: relative; }
.dz-opts { position: absolute; z-index: 4; left: 0; right: 0; top: calc(100% + 6px); display: grid; padding: 6px; border-radius: 10px; background: #2E2643;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transform-origin: 50% 0; }
.dz-opts span { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: rgba(255, 255, 255, 0.8); }
.dz-opts .sdi { width: 18px !important; height: 18px !important; }
.dz-list .dz-tr { overflow: hidden; }
.dz-list .dz-type-art path { transition: none; }
.dz-list .dz-type, .dz-list .dz-tr { transition: none; }
.dz-list .sdf-cur { z-index: 6; }

/* staking: his My locked SDAO card, live (sd_film.LOCKED), set in his 390px units so it scales with its column */
.sd-b-live { container-type: inline-size; }
.sdk { --k: calc(100cqi / 390); position: relative; overflow: hidden; border-radius: calc(16 * var(--k)); background: #231C33; box-shadow: 0 0 0 1px #2C8F7A, 0 40px 50px -10px rgba(30, 15, 60, 0.28);
  color: #fff; font: 400 calc(16 * var(--k)) / 1.25 'FB Poppins', var(--sans); }
.sdk p { margin: 0; }
.sdk-top { position: relative; padding: calc(20 * var(--k)) calc(16 * var(--k)) calc(18 * var(--k)); background: linear-gradient(100deg, #278776 0%, #2EBA79 100%); }
.sdk-bot { padding: 0 calc(16 * var(--k)); }
.sdk-row { position: relative; padding: calc(22 * var(--k)) 0 calc(18 * var(--k)); }
.sdk-row + .sdk-row { border-top: 1px solid #2E2643; }
.sdk-k { color: #726583; font-size: calc(15 * var(--k)); }
.sdk-top .sdk-k { color: rgba(255, 255, 255, 0.5); font-size: calc(18.5 * var(--k)); line-height: 1.6; }
.sdk-v { margin-top: calc(4 * var(--k)) !important; font-size: calc(24 * var(--k)); font-variant-numeric: tabular-nums; }
.sdk-top .sdk-v { margin-top: calc(8 * var(--k)) !important; font-size: calc(34 * var(--k)); }
.sdk-u { margin-top: calc(6 * var(--k)) !important; color: #4C4260; font-size: calc(13 * var(--k)); }
.sdk-top .sdk-u { color: rgba(255, 255, 255, 0.45); }
.sdk-btn { position: absolute; right: 0; top: calc(22 * var(--k)); display: grid; place-items: center; min-width: calc(74 * var(--k)); height: calc(41 * var(--k)); padding: 0 calc(16 * var(--k));
  border-radius: calc(8 * var(--k)); box-shadow: inset 0 0 0 1.5px #CCA4FF; color: #CCA4FF; font-size: calc(14 * var(--k)); }
.sdk-add { right: calc(16 * var(--k)); box-shadow: inset 0 0 0 1.5px #fff; color: #fff; }
.sdk-fly { position: absolute; right: calc(16 * var(--k)); top: calc(70 * var(--k)); padding: calc(5 * var(--k)) calc(10 * var(--k)); border-radius: 99px; background: #fff; color: #1E6E5C;
  font-size: calc(12 * var(--k)); font-weight: 600; white-space: nowrap; opacity: 0; }
.sdk-fly-claim { right: 0; top: calc(66 * var(--k)); background: #CCA4FF; color: #1E192C; }
.sdk-tick { width: 0.86em; height: 0.86em; margin-right: 0.36em; vertical-align: -0.07em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sdk-tick path { stroke-dasharray: 1; }
.sdk-tap { position: absolute; left: 0; top: 0; width: calc(34 * var(--k)); height: calc(34 * var(--k)); margin: calc(-17 * var(--k)) 0 0 calc(-17 * var(--k)); border-radius: 50%; background: rgba(255, 255, 255, 0.5); opacity: 0; pointer-events: none; }
