/* The player's stage and chrome. Shared by the public viewer and the editor's present mode. */
.dk-page { margin: 0; background: #0c0c0c; color: #f4f4f5; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; overflow: hidden; }
.dk-page #app { position: fixed; inset: 0; }
.dk-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #a1a1aa; }

.dk-root { position: absolute; inset: 0; background: #000; overflow: hidden; outline: none; user-select: none; -webkit-user-select: none; touch-action: pan-y; -webkit-tap-highlight-color: transparent; color: #f4f4f5; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.dk-root.dk-idle { cursor: none; }
.dk-stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); overflow: hidden; background: #000; contain: layout paint; }
.dk-cam { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.dk-slide, .dk-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dk-slide > img { object-fit: contain; pointer-events: none; }
.dk-hot { position: absolute; inset: 0; pointer-events: none; }
.dk-hs { position: absolute; display: block; pointer-events: auto; border-radius: 4px; outline-offset: 2px; cursor: pointer; }
.dk-hs:hover { background: rgba(51, 173, 255, .14); box-shadow: 0 0 0 2px rgba(51, 173, 255, .6); }
.dk-hs:focus-visible { outline: 3px solid #33adff; }
.dk-idle .dk-hs { cursor: none; }

/* Statement slides */
.dk-st { position: absolute; inset: 0; display: flex; align-items: center; box-sizing: border-box; padding: 0 10%; }
.dk-st.dk-c { justify-content: center; text-align: center; }
.dk-stb { width: 100%; }
.dk-ln { line-height: 1.1; margin-bottom: .32em; opacity: 0; transform: translateY(.4em); filter: blur(14px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), filter .9s cubic-bezier(.2, .7, .2, 1); }
.dk-ln.on { opacity: 1; transform: none; filter: none; }
.dk-ln .ac { color: var(--ac); }
.dk-reduced .dk-ln { transition: none; transform: none; filter: none; }

/* Focus: spotlight, highlight ring, caption */
.dk-spot { position: absolute; pointer-events: none; opacity: 0; border-radius: 1.2% / 2.2%; box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .8); filter: blur(10px); transition: opacity .6s ease, left .75s cubic-bezier(.65, 0, .3, 1), top .75s cubic-bezier(.65, 0, .3, 1), width .75s cubic-bezier(.65, 0, .3, 1), height .75s cubic-bezier(.65, 0, .3, 1); }
.dk-spot.on { opacity: 1; }
.dk-reduced .dk-spot { transition: none; }
.dk-ring { position: absolute; pointer-events: none; display: none; border: 3px solid #33adff; border-radius: 6px; box-shadow: 0 0 0 4px rgba(0, 0, 0, .35); }
.dk-ring.on { display: block; }
.dk-cap { position: absolute; left: 50%; bottom: 4%; transform: translate(-50%, 8px); max-width: 80%; padding: .5em 1.1em; border-radius: 999px; background: rgba(12, 12, 12, .82); color: #f4f4f5; font-size: calc(var(--u) * 2.4); font-weight: 600; opacity: 0; transition: opacity .4s, transform .4s; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-cap.on { opacity: 1; transform: translate(-50%, 0); }
.dk-reduced .dk-cap { transition: none; }

.dk-fx { position: absolute; inset: 0; pointer-events: none; }
.dk-fxfade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.dk-blank { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .25s; }
.dk-isblank .dk-blank { opacity: 1; pointer-events: auto; }

/* Chrome */
.dk-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dk-jump { position: absolute; top: 18px; right: 18px; padding: 8px 16px; border-radius: 999px; background: var(--chrome-bg, rgba(12, 12, 12, .85)); color: var(--chrome-ink, #f4f4f5); font-weight: 700; font-size: 20px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.dk-jump.on { opacity: 1; }
.dk-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #33adff; transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s ease, opacity .3s; opacity: 0; pointer-events: none; }
.dk-paced .dk-prog { opacity: 1; }
.dk-badge { position: absolute; left: 14px; bottom: 12px; padding: 7px 13px; border-radius: 999px; background: var(--chrome-bg, rgba(12, 12, 12, .6)); color: var(--chrome-soft, #d4d4d8); font-size: 12px; font-weight: 600; text-decoration: none; backdrop-filter: blur(8px); transition: opacity .3s; opacity: .8; }
.dk-badge:hover, .dk-badge:focus-visible { opacity: 1; color: var(--chrome-ink, #fff); }
.dk-idle .dk-badge { opacity: 0; }
.dk-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: var(--chrome-bg, rgba(12, 12, 12, .78)); backdrop-filter: blur(10px); transition: opacity .3s; z-index: 3; }
.dk-idle .dk-bar { opacity: 0; pointer-events: none; }
.dk-exit { position: absolute; left: 14px; top: 14px; z-index: 3; appearance: none; border: 0; border-radius: 999px; padding: 0 16px; height: 40px; background: var(--chrome-bg, rgba(12, 12, 12, .78)); color: var(--chrome-ink, #f4f4f5); font: 600 13px 'Plus Jakarta Sans', system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(10px); transition: opacity .3s; }
.dk-exit:hover { background: var(--chrome-hover, rgba(255, 255, 255, .12)); }
.dk-exit:focus-visible { outline: 3px solid #33adff; outline-offset: 2px; }
.dk-idle .dk-exit { opacity: 0; pointer-events: none; }
.dk-exit:focus-visible, .dk-idle .dk-exit:focus-visible { opacity: 1; pointer-events: auto; }
.dk-bar:focus-within { opacity: 1; pointer-events: auto; }
.dk-bar button { appearance: none; border: 0; background: transparent; color: var(--chrome-ink, #f4f4f5); font: 600 13px 'Plus Jakarta Sans', system-ui, sans-serif; padding: 0 14px; height: 40px; min-width: 40px; border-radius: 999px; cursor: pointer; }
.dk-bar button:hover { background: var(--chrome-hover, rgba(255, 255, 255, .12)); }
.dk-bar button[aria-pressed='true'] { background: #33adff; color: #04121c; }
.dk-bar button:focus-visible, .dk-badge:focus-visible { outline: 3px solid #33adff; outline-offset: 2px; }
.dk-bar button[data-a='prev'], .dk-bar button[data-a='next'] { font-size: 24px; line-height: 1; padding: 0 12px; }
.dk-count { min-width: 56px; text-align: center; font-size: 13px; font-weight: 600; color: var(--chrome-soft, #d4d4d8); font-variant-numeric: tabular-nums; }
.dk-sp { width: 1px; height: 20px; background: var(--chrome-line, rgba(255, 255, 255, .2)); margin: 0 4px; }
@media (max-width: 640px) {
  .dk-bar { bottom: 8px; gap: 2px; }
  .dk-bar [data-a='fs'] { display: none; }
  .dk-badge { left: 8px; bottom: auto; top: 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .dk-ln, .dk-cap, .dk-spot, .dk-blank, .dk-prog { transition: none !important; } }
.dk-hs:hover::after, .dk-hs:focus-visible::after { content: attr(data-url); position: absolute; left: 0; top: calc(100% + 6px); max-width: 60vw; padding: .35em .8em; border-radius: 999px; background: rgba(12, 12, 12, .92); color: #f4f4f5; font: 600 calc(var(--u) * 2) 'Plus Jakarta Sans', system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; z-index: 5; }
.dk-bar button { white-space: nowrap; }

/* Transitions drawn by fx2.js (push, slide over, wipe, zoom, flip, cube, iris, blinds) */
.dk-xp { position: absolute; inset: 0; }
.dk-persp { perspective: 1800px; }
.dk-3d { transform-style: preserve-3d; }
.dk-xl { position: absolute; inset: 0; overflow: hidden; background: #000; }
.dk-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }

/* Focus kinds drawn by focus.js and marks.js: highlight, circle, arrow, blur, reveal, magnify, click, pulse, underline, strike, box, note, stamp, countup.
   Positions are percentages of the stage (a few are set in pixels by marks.js: the note, the stamp, the number). */
.dk-fsl, .dk-fs { position: absolute; inset: 0; pointer-events: none; }
.dk-fs > * { position: absolute; }
.dk-hl-m, .dk-hl-n { position: absolute; inset: 0; border-radius: calc(var(--u, 8px) * .5) calc(var(--u, 8px) * .9); background: var(--hl, #33adff); clip-path: inset(0 100% 0 0); transition: clip-path .75s cubic-bezier(.65, 0, .3, 1); }
.dk-hl-m { mix-blend-mode: multiply; opacity: .62; transform: rotate(-.5deg); }
.dk-hl-n { opacity: .2; transform: rotate(-.5deg); }
.dk-hl.on > * { clip-path: inset(0 0 0 0); }
.dk-svg { left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.dk-ink { fill: none; stroke: var(--hl, #33adff); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .45)); transition: opacity .3s, stroke-dashoffset 0s .3s; }
.dk-ink2 { stroke-width: 4; }
.on > .dk-ink, .on .dk-ink { opacity: 1; stroke-dashoffset: 0; transition: opacity .15s, stroke-dashoffset 1s cubic-bezier(.5, 0, .2, 1); }
.on .dk-ink2 { opacity: .5; transition-delay: .3s; }
.on .dk-ahead { transition: opacity .15s .6s, stroke-dashoffset .35s cubic-bezier(.5, 0, .2, 1) .6s; }
.dk-blur { inset: 0; opacity: 0; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: opacity .5s ease, backdrop-filter .7s ease, -webkit-backdrop-filter .7s ease; }
.dk-blur.on { opacity: 1; -webkit-backdrop-filter: blur(calc(var(--u, 8px) * 1.1)); backdrop-filter: blur(calc(var(--u, 8px) * 1.1)); }
.dk-cover { background: var(--tone, #8d939e); border-radius: .4% / .7%; -webkit-backdrop-filter: blur(calc(var(--u, 8px) * .6)); backdrop-filter: blur(calc(var(--u, 8px) * .6)); opacity: 0; clip-path: inset(0 0 0 100%); transition: clip-path .9s cubic-bezier(.65, 0, .3, 1), opacity .5s ease .5s; }
.dk-cover.on { opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path .5s ease, opacity .4s ease; }
.dk-lens { border-radius: 50%; overflow: hidden; opacity: 0; transform: scale(.7); background: #000; box-shadow: 0 0 0 calc(var(--u, 8px) * .4) rgba(255, 255, 255, .92), 0 calc(var(--u, 8px) * 1.4) calc(var(--u, 8px) * 4) rgba(0, 0, 0, .5); transition: opacity .35s, transform .55s cubic-bezier(.2, .8, .2, 1); }
.dk-lens.on { opacity: 1; transform: none; }
.dk-lensin { position: absolute; }
.dk-lensin > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.dk-cap.tail { bottom: auto; transform: translate(-50%, -50%); max-width: 36%; }
.dk-cap.tail.on { transform: translate(-50%, -50%); }
.dk-nt, .dk-nt * { transition: none !important; }
/* reduced motion: nothing sweeps or draws, things just fade */
.dk-fs-rm .dk-hl-m, .dk-fs-rm .dk-hl-n { clip-path: none; opacity: 0; transition: opacity .25s; }
.dk-fs-rm .dk-hl.on .dk-hl-m { opacity: .62; } .dk-fs-rm .dk-hl.on .dk-hl-n { opacity: .2; }
.dk-fs-rm .dk-ink { stroke-dashoffset: 0; transition: opacity .25s; } .dk-fs-rm .on .dk-ink { transition: opacity .25s; } .dk-fs-rm .on .dk-ink2 { transition-delay: 0s; } .dk-fs-rm .on .dk-ahead { transition: opacity .25s; }
.dk-fs-rm .dk-blur { transition: opacity .25s; -webkit-backdrop-filter: blur(calc(var(--u, 8px) * 1.1)); backdrop-filter: blur(calc(var(--u, 8px) * 1.1)); }
.dk-fs-rm .dk-cover, .dk-fs-rm .dk-cover.on { clip-path: none; transition: opacity .25s; }
.dk-fs-rm .dk-lens, .dk-fs-rm .dk-lens.on { transform: none; transition: opacity .25s; }

/* Owners and editors get a quiet "Edit" link on the viewer */
.dk-edit { position: fixed; left: 14px; top: 14px; z-index: 30; display: inline-grid; place-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--chrome-bg, rgba(12,12,12,.78)); color: var(--chrome-ink, #f4f4f5); border: 1px solid var(--chrome-line, rgba(255,255,255,.2)); font: 700 13px/1 system-ui, sans-serif; text-decoration: none; backdrop-filter: blur(8px); }
.dk-edit:hover { background: var(--chrome-hover, rgba(255,255,255,.12)); }
.dk-edit:focus-visible { outline: 3px solid var(--accent-text, #33adff); outline-offset: 2px; }

/* Viewer analytics notice (player/track.js): one compact line in the same pill style as the controls, bottom right. After the first view it
   folds into a small info button that reopens it (kept in this browser). */
.dk-note { position: fixed; right: 14px; bottom: 12px; z-index: 4; display: flex; align-items: center; gap: 6px; max-width: calc(100vw - 28px); font: 500 11.5px/1.3 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--chrome-soft, #d4d4d8); }
.dk-nb { padding: 6px 12px; border-radius: 999px; background: var(--chrome-bg, rgba(12, 12, 12, .78)); backdrop-filter: blur(8px); text-align: right; }
.dk-nb[hidden] { display: none; }
.dk-note a, .dk-note .dk-nb button { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--chrome-ink, #f4f4f5); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.dk-info { appearance: none; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--chrome-bg, rgba(12, 12, 12, .78)); color: var(--chrome-soft, #d4d4d8); font: italic 700 13px/1 Georgia, serif; cursor: pointer; backdrop-filter: blur(8px); }
.dk-info:hover { background: var(--chrome-hover, rgba(255, 255, 255, .12)); }
.dk-note a:focus-visible, .dk-note button:focus-visible { outline: 2px solid #33adff; outline-offset: 2px; border-radius: 6px; }
@media (max-width: 700px) { .dk-note { bottom: 66px; right: 10px; flex-direction: row; } .dk-nb { border-radius: 14px; padding: 6px 10px; } }
