@import url("./spatial.css");
@import url("./courseware.css");

:root {
  --deck-scale: 1;
  --deck-visible-width: 1600px;
  --deck-visible-height: 900px;
  --deck-navy: #071c49;
  --deck-blue: #0f56e8;
  --deck-violet: #7547ed;
  --deck-cyan: #21a8cf;
  --deck-gold: #d6a63d;
  --deck-ink: #0c2250;
  --deck-text: #263957;
  --deck-muted: #657591;
  --deck-line: #cbd7ee;
  --deck-soft: #f4f7fd;
  --deck-white: #fff;
  --deck-font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --deck-system-z: 2147482000;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #fff;
  color: var(--deck-text);
  font-family: var(--deck-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input { font: inherit; }

button { cursor: pointer; }

button:focus-visible,
input:focus-visible {
  outline: 4px solid rgba(214, 166, 61, .7);
  outline-offset: 3px;
}

[data-deck-viewport] {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #fff;
}

[data-deck-stage] {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--deck-width, 1600px);
  height: var(--deck-height, 900px);
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  transform: translate(-50%, -50%) scale(var(--deck-scale));
  transform-origin: center;
  perspective: 1800px;
}

[data-deck-slide] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(28px);
  transition: opacity .28s ease, transform .4s ease, visibility 0s linear .42s;
  background: #fff;
}

[data-deck-slide].is-before { transform: translateX(-28px); }

[data-deck-slide].is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

[data-deck-slide]:not(.is-active) *,
[data-deck-slide]:not(.is-active)::before,
[data-deck-slide]:not(.is-active)::after {
  animation-play-state: paused !important;
}

[data-deck-progress] {
  position: fixed;
  z-index: calc(var(--deck-system-z) - 20);
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(15, 86, 232, .08);
}

[data-deck-progress] > span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--deck-blue), var(--deck-violet), var(--deck-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .36s ease;
}

[data-deck-counter] {
  position: fixed;
  z-index: calc(var(--deck-system-z) - 10);
  right: 32px;
  bottom: 22px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 88px;
  padding: 10px 14px;
  border: 1px solid rgba(15, 86, 232, .14);
  border-radius: 16px;
  color: var(--deck-muted);
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 12px 28px rgba(26, 56, 111, .08);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  transition: border-color .25s ease, box-shadow .25s ease;
}

[data-deck-counter].is-camera-ready {
  border-color: rgba(22, 141, 103, .62);
  box-shadow: 0 0 0 3px rgba(22, 141, 103, .1), 0 12px 28px rgba(26, 56, 111, .08);
}

[data-deck-current] { color: var(--deck-blue); font-size: 22px; font-weight: 900; }
[data-deck-total] { font-size: 14px; font-weight: 750; }

[data-deck-clock] {
  position: fixed;
  z-index: calc(var(--deck-system-z) - 10);
  left: 34px;
  bottom: 28px;
  color: rgba(71, 85, 105, .48);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  pointer-events: none;
}

.deck-transition-in,
.deck-transition-out {
  visibility: visible !important;
  pointer-events: none !important;
  transition: none !important;
  animation-duration: var(--deck-transition-duration, 560ms);
  animation-timing-function: cubic-bezier(.2, .76, .22, 1);
  animation-fill-mode: both;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity, clip-path, filter;
}

.deck-transition-in { z-index: 7 !important; }
.deck-transition-out { z-index: 6 !important; }
.deck-transition-in.deck-fade { animation-name: deck-fade-in; }
.deck-transition-out.deck-fade { animation-name: deck-fade-out; }
.deck-transition-in.deck-zoom { animation-name: deck-zoom-in; }
.deck-transition-out.deck-zoom { animation-name: deck-zoom-out; }
.deck-transition-in.deck-rise { animation-name: deck-rise-in; }
.deck-transition-out.deck-rise { animation-name: deck-rise-out; }
.deck-transition-in.deck-cover.deck-forward { animation-name: deck-cover-forward; }
.deck-transition-in.deck-cover.deck-backward { animation-name: deck-cover-backward; }
.deck-transition-out.deck-cover { animation-name: deck-hold; }
.deck-transition-in.deck-push.deck-forward { animation-name: deck-push-in-forward; }
.deck-transition-out.deck-push.deck-forward { animation-name: deck-push-out-forward; }
.deck-transition-in.deck-push.deck-backward { animation-name: deck-push-in-backward; }
.deck-transition-out.deck-push.deck-backward { animation-name: deck-push-out-backward; }
.deck-transition-in.deck-wipe.deck-forward { animation-name: deck-wipe-in-forward; }
.deck-transition-in.deck-wipe.deck-backward { animation-name: deck-wipe-in-backward; }
.deck-transition-out.deck-wipe { animation-name: deck-soft-out; }
.deck-transition-in.deck-flip.deck-forward { animation-name: deck-flip-in-forward; transform-origin: left center; }
.deck-transition-out.deck-flip.deck-forward { animation-name: deck-flip-out-forward; transform-origin: right center; }
.deck-transition-in.deck-flip.deck-backward { animation-name: deck-flip-in-backward; transform-origin: right center; }
.deck-transition-out.deck-flip.deck-backward { animation-name: deck-flip-out-backward; transform-origin: left center; }
.deck-transition-in.deck-split { animation-name: deck-split-in; }
.deck-transition-out.deck-split { animation-name: deck-split-out; }
.deck-transition-in.deck-cube.deck-forward { animation-name: deck-cube-in-forward; transform-origin: left center; }
.deck-transition-out.deck-cube.deck-forward { animation-name: deck-cube-out-forward; transform-origin: right center; }
.deck-transition-in.deck-cube.deck-backward { animation-name: deck-cube-in-backward; transform-origin: right center; }
.deck-transition-out.deck-cube.deck-backward { animation-name: deck-cube-out-backward; transform-origin: left center; }
.deck-transition-in.deck-carousel.deck-forward { animation-name: deck-carousel-in-forward; }
.deck-transition-out.deck-carousel.deck-forward { animation-name: deck-carousel-out-forward; }
.deck-transition-in.deck-carousel.deck-backward { animation-name: deck-carousel-in-backward; }
.deck-transition-out.deck-carousel.deck-backward { animation-name: deck-carousel-out-backward; }
.deck-transition-in.deck-glide.deck-forward { animation-name: deck-glide-in-forward; }
.deck-transition-out.deck-glide.deck-forward { animation-name: deck-glide-out-forward; }
.deck-transition-in.deck-glide.deck-backward { animation-name: deck-glide-in-backward; }
.deck-transition-out.deck-glide.deck-backward { animation-name: deck-glide-out-backward; }
.deck-transition-in.deck-swing.deck-forward { animation-name: deck-swing-in-forward; transform-origin: 100% 0; }
.deck-transition-in.deck-swing.deck-backward { animation-name: deck-swing-in-backward; transform-origin: 0 0; }
.deck-transition-out.deck-swing { animation-name: deck-soft-out; }
.deck-transition-in.deck-iris { animation-name: deck-iris-in; }
.deck-transition-out.deck-iris { animation-name: deck-soft-out; }
.deck-transition-in.deck-diamond { animation-name: deck-diamond-in; }
.deck-transition-out.deck-diamond { animation-name: deck-soft-out; }
.deck-transition-in.deck-diagonal.deck-forward { animation-name: deck-diagonal-in-forward; }
.deck-transition-in.deck-diagonal.deck-backward { animation-name: deck-diagonal-in-backward; }
.deck-transition-out.deck-diagonal { animation-name: deck-soft-out; }
.deck-transition-in.deck-spiral.deck-forward { animation-name: deck-spiral-in-forward; }
.deck-transition-in.deck-spiral.deck-backward { animation-name: deck-spiral-in-backward; }
.deck-transition-out.deck-spiral { animation-name: deck-spiral-out; }
.deck-transition-in.deck-curtain.deck-forward { animation-name: deck-curtain-in-forward; }
.deck-transition-in.deck-curtain.deck-backward { animation-name: deck-curtain-in-backward; }
.deck-transition-out.deck-curtain { animation-name: deck-soft-out; }
.deck-transition-in.deck-depth { animation-name: deck-depth-in; }
.deck-transition-out.deck-depth { animation-name: deck-depth-out; }
.deck-transition-in.deck-radial { animation-name: deck-radial-in; }
.deck-transition-out.deck-radial { animation-name: deck-soft-out; }

@keyframes deck-fade-in { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: scale(1); } }
@keyframes deck-fade-out { from { opacity: 1; } to { opacity: 0; transform: scale(.99); } }
@keyframes deck-zoom-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@keyframes deck-zoom-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.06); } }
@keyframes deck-rise-in { from { opacity: 0; transform: translateY(70px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes deck-rise-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-34px) scale(1.01); } }
@keyframes deck-cover-forward { from { opacity: 1; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes deck-cover-backward { from { opacity: 1; transform: translateX(-100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes deck-push-in-forward { from { opacity: 1; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes deck-push-out-forward { from { opacity: 1; transform: translateX(0); } to { opacity: 1; transform: translateX(-100%); } }
@keyframes deck-push-in-backward { from { opacity: 1; transform: translateX(-100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes deck-push-out-backward { from { opacity: 1; transform: translateX(0); } to { opacity: 1; transform: translateX(100%); } }
@keyframes deck-hold { from, to { opacity: 1; transform: none; } }
@keyframes deck-soft-out { from { opacity: 1; } to { opacity: .12; } }
@keyframes deck-wipe-in-forward { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes deck-wipe-in-backward { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes deck-flip-in-forward { from { opacity: .3; transform: perspective(1800px) rotateY(-82deg); } to { opacity: 1; transform: perspective(1800px) rotateY(0); } }
@keyframes deck-flip-out-forward { from { opacity: 1; transform: perspective(1800px) rotateY(0); } to { opacity: .2; transform: perspective(1800px) rotateY(82deg); } }
@keyframes deck-flip-in-backward { from { opacity: .3; transform: perspective(1800px) rotateY(82deg); } to { opacity: 1; transform: perspective(1800px) rotateY(0); } }
@keyframes deck-flip-out-backward { from { opacity: 1; transform: perspective(1800px) rotateY(0); } to { opacity: .2; transform: perspective(1800px) rotateY(-82deg); } }
@keyframes deck-split-in { from { clip-path: inset(48% 0 48% 0); transform: scaleX(.94); } to { clip-path: inset(0); transform: scaleX(1); } }
@keyframes deck-split-out { from { opacity: 1; } to { opacity: .1; transform: scaleX(1.035); } }
@keyframes deck-cube-in-forward { from { opacity: .45; transform: perspective(1800px) translateX(100%) rotateY(86deg); } to { opacity: 1; transform: perspective(1800px) translateX(0) rotateY(0); } }
@keyframes deck-cube-out-forward { from { opacity: 1; transform: perspective(1800px) translateX(0) rotateY(0); } to { opacity: .3; transform: perspective(1800px) translateX(-100%) rotateY(-86deg); } }
@keyframes deck-cube-in-backward { from { opacity: .45; transform: perspective(1800px) translateX(-100%) rotateY(-86deg); } to { opacity: 1; transform: perspective(1800px) translateX(0) rotateY(0); } }
@keyframes deck-cube-out-backward { from { opacity: 1; transform: perspective(1800px) translateX(0) rotateY(0); } to { opacity: .3; transform: perspective(1800px) translateX(100%) rotateY(86deg); } }
@keyframes deck-carousel-in-forward { from { opacity: .25; transform: perspective(1600px) translate3d(72%,0,-620px) rotateY(-34deg) scale(.82); } to { opacity: 1; transform: none; } }
@keyframes deck-carousel-out-forward { from { opacity: 1; transform: none; } to { opacity: .2; transform: perspective(1600px) translate3d(-58%,0,-680px) rotateY(28deg) scale(.78); } }
@keyframes deck-carousel-in-backward { from { opacity: .25; transform: perspective(1600px) translate3d(-72%,0,-620px) rotateY(34deg) scale(.82); } to { opacity: 1; transform: none; } }
@keyframes deck-carousel-out-backward { from { opacity: 1; transform: none; } to { opacity: .2; transform: perspective(1600px) translate3d(58%,0,-680px) rotateY(-28deg) scale(.78); } }
@keyframes deck-glide-in-forward { from { opacity: 0; transform: translateX(32%) skewX(-7deg) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes deck-glide-out-forward { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-18%) skewX(4deg) scale(1.015); } }
@keyframes deck-glide-in-backward { from { opacity: 0; transform: translateX(-32%) skewX(7deg) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes deck-glide-out-backward { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(18%) skewX(-4deg) scale(1.015); } }
@keyframes deck-swing-in-forward { from { opacity: 0; transform: rotate(9deg) translate(18%, -8%); } to { opacity: 1; transform: none; } }
@keyframes deck-swing-in-backward { from { opacity: 0; transform: rotate(-9deg) translate(-18%, -8%); } to { opacity: 1; transform: none; } }
@keyframes deck-iris-in { from { clip-path: circle(0 at 50% 50%); filter: saturate(1.5) brightness(1.18); } to { clip-path: circle(75% at 50% 50%); filter: none; } }
@keyframes deck-diamond-in { from { clip-path: polygon(50% 50%,50% 50%,50% 50%,50% 50%); } to { clip-path: polygon(50% -55%,155% 50%,50% 155%,-55% 50%); } }
@keyframes deck-diagonal-in-forward { from { clip-path: polygon(0 0,0 0,0 0,0 100%); } to { clip-path: polygon(0 0,100% 0,100% 100%,0 100%); } }
@keyframes deck-diagonal-in-backward { from { clip-path: polygon(100% 0,100% 0,100% 100%,100% 100%); } to { clip-path: polygon(0 0,100% 0,100% 100%,0 100%); } }
@keyframes deck-spiral-in-forward { from { opacity: 0; transform: rotate(-11deg) scale(.72); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes deck-spiral-in-backward { from { opacity: 0; transform: rotate(11deg) scale(.72); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes deck-spiral-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: rotate(5deg) scale(1.12); } }
@keyframes deck-curtain-in-forward { from { clip-path: inset(0 50% 0 50%); filter: brightness(1.15); } to { clip-path: inset(0); filter: none; } }
@keyframes deck-curtain-in-backward { from { clip-path: inset(50% 0 50% 0); filter: brightness(1.15); } to { clip-path: inset(0); filter: none; } }
@keyframes deck-depth-in { from { opacity: 0; transform: perspective(1600px) translateZ(-620px) scale(.76); filter: blur(9px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes deck-depth-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: perspective(1600px) translateZ(350px) scale(1.08); filter: blur(5px); } }
@keyframes deck-radial-in { from { clip-path: circle(0 at 14% 86%); transform: scale(1.03); } to { clip-path: circle(142% at 14% 86%); transform: scale(1); } }

.deck-presentation-tools {
  position: fixed;
  z-index: var(--deck-system-z);
  inset: 0;
  pointer-events: none;
}

.deck-annotation-canvas {
  position: fixed;
  z-index: 1;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  touch-action: none;
}

.deck-annotation-canvas.is-active { pointer-events: auto; cursor: none; }

.deck-tool-orb {
  position: fixed;
  z-index: 12;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 50%;
  pointer-events: auto;
  touch-action: none;
  background:
    radial-gradient(circle at 32% 25%, rgba(255,255,255,.92), rgba(255,255,255,.22) 34%, transparent 55%),
    linear-gradient(145deg, rgba(55,129,255,.58), rgba(117,71,237,.54));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.9), inset 0 -8px 18px rgba(19,55,132,.16), 0 12px 30px rgba(23,53,112,.2);
  opacity: .36;
  -webkit-backdrop-filter: blur(9px) saturate(155%);
  backdrop-filter: blur(9px) saturate(155%);
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.deck-tool-orb::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.03));
}

.deck-tool-orb:hover,
.deck-tool-orb:focus-visible,
.deck-presentation-tools.has-focus .deck-tool-orb {
  opacity: .92;
  transform: scale(1.04);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 -8px 18px rgba(19,55,132,.16), 0 16px 38px rgba(23,53,112,.28);
}

.deck-toolbar {
  position: fixed;
  z-index: 11;
  display: flex;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(247,250,255,.76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 18px 48px rgba(26,55,112,.2);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  transform: scale(.92);
  transition: opacity .18s ease, transform .24s cubic-bezier(.2,.8,.2,1), visibility 0s linear .24s;
}

.deck-toolbar.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: scale(1); transition-delay: 0s; }
.deck-toolbar.is-vertical { flex-direction: column; }
.deck-toolbar.is-horizontal { flex-direction: row; }

.deck-tool-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: #52688f;
  background: transparent;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}

.deck-tool-button:hover { color: var(--deck-blue); background: rgba(15,86,232,.09); transform: translateY(-1px); }
.deck-tool-button.is-active { color: #fff; background: linear-gradient(135deg, var(--deck-blue), var(--deck-violet)); box-shadow: 0 8px 18px rgba(42,79,188,.24); }
.deck-tool-button:disabled { opacity: .28; cursor: not-allowed; transform: none; }
.deck-tool-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.deck-tool-button > span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  width: max-content;
  max-width: 220px;
  padding: 7px 10px;
  border-radius: 9px;
  color: #fff;
  background: rgba(7,28,73,.9);
  font-size: 13px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .16s ease, transform .16s ease;
}
.deck-tool-button:hover > span { opacity: 1; transform: translate(-50%, 0); }
.deck-toolbar.is-vertical .deck-tool-button > span { left: calc(100% + 9px); bottom: 50%; transform: translate(4px, 50%); }
.deck-toolbar.is-vertical .deck-tool-button:hover > span { transform: translate(0, 50%); }

.deck-tool-separator { width: 1px; min-height: 30px; margin: 7px 3px; background: rgba(82,104,143,.17); }
.deck-toolbar.is-vertical .deck-tool-separator { width: auto; min-height: 1px; margin: 3px 7px; }

.deck-tool-settings {
  position: fixed;
  z-index: 13;
  width: 260px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  color: var(--deck-text);
  background: rgba(250,252,255,.86);
  box-shadow: 0 18px 48px rgba(26,55,112,.2);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  transform: translateY(6px) scale(.96);
  transition: opacity .18s ease, transform .22s ease, visibility 0s linear .22s;
}
.deck-tool-settings.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.deck-tool-settings header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.deck-tool-settings header strong { color: var(--deck-ink); font-size: 17px; }
.deck-tool-settings header button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px; color: var(--deck-muted); background: rgba(15,86,232,.06); }
.deck-tool-settings header svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.deck-tool-settings label { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; min-height: 42px; color: var(--deck-muted); font-size: 14px; font-weight: 700; }
.deck-tool-settings input[type="color"] { width: 100%; height: 32px; padding: 2px; border: 1px solid rgba(15,86,232,.16); border-radius: 10px; background: #fff; }
.deck-tool-settings input[type="range"] { width: 100%; accent-color: var(--deck-blue); }
.deck-tool-settings b { min-width: 42px; color: var(--deck-ink); font-size: 13px; text-align: right; }

.deck-drawing-cursor,
.deck-gesture-cursor {
  position: fixed;
  z-index: 15;
  left: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.deck-drawing-cursor.is-visible,
.deck-gesture-cursor.is-visible { opacity: 1; visibility: visible; }
.deck-drawing-cursor svg { width: 30px; height: 30px; fill: var(--cursor-color, #1769ff); stroke: #52688f; stroke-width: 1.5; }
.deck-drawing-cursor[data-tool="eraser"] { width: var(--cursor-size, 34px); height: var(--cursor-size, 34px); border: 2px solid rgba(19,46,91,.7); border-radius: 50%; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.deck-drawing-cursor[data-tool="eraser"] svg { display: none; }
.deck-drawing-cursor[data-tool="highlighter"] svg { width: 34px; height: 34px; fill: var(--cursor-color, #ffd43b); }
.deck-gesture-cursor svg { width: 30px; height: 30px; fill: #fff; stroke: #17243a; stroke-width: 1.8; filter: drop-shadow(0 4px 8px rgba(15,23,42,.25)); }

.deck-tool-toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 52px;
  max-width: min(540px, calc(100vw - 40px));
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 14px;
  color: #fff;
  background: rgba(7,28,73,.88);
  box-shadow: 0 14px 34px rgba(12,34,80,.2);
  font-size: 15px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .18s ease, transform .22s ease;
}
.deck-tool-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.deck-sr-live { position: fixed; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.deck-gesture-camera {
  position: fixed;
  z-index: calc(var(--deck-system-z) - 5);
  left: 22px;
  top: 22px;
  width: 220px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 18px;
  opacity: .2;
  pointer-events: none;
  background: rgba(7,28,73,.35);
  box-shadow: 0 12px 32px rgba(19,43,92,.16);
}
.deck-gesture-camera video { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; transform: scaleX(-1); }
.deck-gesture-camera > div { display: flex; align-items: center; gap: 7px; padding: 8px 10px; color: #fff; font-size: 12px; font-weight: 700; }
.deck-gesture-camera i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.deck-gesture-camera[data-status="ready"] i { background: #22c55e; }
.deck-gesture-camera[data-status="error"] i { background: #ef4444; }

.deck-cursor-idle,
.deck-cursor-idle * { cursor: none !important; }

@media (prefers-reduced-motion: reduce) {
  [data-deck-slide],
  [data-deck-progress] > span,
  .deck-toolbar,
  .deck-tool-orb,
  .deck-tool-settings,
  .deck-tool-toast { animation: none !important; transition: none !important; }
}

@media print {
  html, body { width: 1600px; height: auto; overflow: visible; }
  [data-deck-viewport], [data-deck-stage] { position: static; width: 1600px; height: auto; transform: none !important; overflow: visible; }
  [data-deck-slide] { position: relative; width: 1600px; height: 900px; opacity: 1 !important; visibility: visible !important; transform: none !important; break-after: page; }
  [data-deck-progress], [data-deck-counter], [data-deck-clock], .deck-presentation-tools, .deck-gesture-camera { display: none !important; }
}
