/*
 * Team and Tricks demo kit: stage, camera, cursor and operator overlays.
 * The app's own look lives in app.css. Scenes add only what is unique to them.
 */

@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: block;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: block;
}


@font-face {
  font-family: 'Noto Emoji';
  src: url('../fonts/noto-emoji-0.woff2') format('woff2');
  unicode-range: U+2764, U+2705, U+FE0E;
}
@font-face {
  font-family: 'Noto Emoji';
  src: url('../fonts/noto-emoji-1.woff2') format('woff2');
  unicode-range: U+1F389, U+FE0E;
}
@font-face {
  font-family: 'Noto Emoji';
  src: url('../fonts/noto-emoji-2.woff2') format('woff2');
  unicode-range: U+1F680, U+FE0E;
}
@font-face {
  font-family: 'Noto Emoji';
  src: url('../fonts/noto-emoji-3.woff2') format('woff2');
  unicode-range: U+1F525, U+FE0E;
}
@font-face {
  font-family: 'Noto Emoji';
  src: url('../fonts/noto-emoji-4.woff2') format('woff2');
  unicode-range: U+1F44D, U+1F44E, U+1F602, U+1F62E, U+1F622, U+1F440, U+1F64C, U+1F64F, U+1F642, U+1F60A, U+1F44F, U+FE0E;
}

@font-face {
  font-family: 'Excalifont';
  src: url('../fonts/excalifont-latin.woff2') format('woff2');
  font-display: block;
}

:root {
  /* Light theme tokens, matching globals.css on the web app. */
  --foreground: #151d2e;
  --muted-foreground: #64748b;
  --text-subtle: #94a3b8;
  --canvas: #f1f3f7;
  --canvas-deep: #f1f3f7;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --panel-nav-active: #f1f3f7;
  --glass-tint: color-mix(in srgb, #151d2e 5%, #ffffff);
  --panel-chrome: color-mix(in srgb, #151d2e 3.25%, #ffffff);
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Backdrop around the stage (never recorded when the window matches the frame). */
  --backdrop: #e4e7ec;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--backdrop); }
body {
  font-family: var(--sans);
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- stage: the recorded frame ---------- */
#viewport { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#stage {
  position: relative;
  flex: none;
  overflow: hidden;
  background: linear-gradient(180deg, var(--canvas) 0%, #f3f3f3 40%, var(--canvas-deep) 100%);
  cursor: none;
}
#stage.module { background: var(--canvas); }

/* The world is the scene at its natural size; the camera scales and moves it inside the stage. */
#world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}
#world.camera-move { transition: transform var(--cam-dur, 1.1s) cubic-bezier(0.65, 0, 0.35, 1); }

.ic { flex: none; display: block; }
/* Reactions and emoji in the app's monochrome style. */
.emo { font-family: 'Noto Emoji', var(--sans); font-variant-emoji: text; color: var(--muted-foreground); line-height: 1; }

/* ---------- cursor ---------- */
#cur { position: absolute; left: 0; top: 0; z-index: 200; pointer-events: none; will-change: transform; }
#cur svg { display: block; transition: transform 0.12s; }
#cur.down svg { transform: scale(0.86); }
#cur.gone { opacity: 0; }
.ripple {
  position: absolute; z-index: 199; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%; border: 2px solid rgba(21, 29, 46, 0.35); pointer-events: none;
  animation: kit-rip 0.5s ease-out forwards;
}
@keyframes kit-rip { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* ---------- timecode (outside the stage; hidden unless T is pressed) ---------- */
#tc {
  position: fixed; z-index: 1000; right: 16px; top: 16px; display: none;
  font: 12px/1.5 var(--mono); color: #475569;
  background: rgba(255, 255, 255, 0.94); border: 1px solid #e2e8f0; padding: 8px 10px;
}
.gone { display: none !important; }
