/* SUPER Ascii Cam — tokens, reset, layers. */

/* Registered so the whole interface glides from one lens's colour to the next. */
@property --accent { syntax: '<color>'; inherits: true; initial-value: #39ff88; }

:root {
  --bg: #040507;
  --text: #f2f5ff;
  --muted: rgba(226, 232, 255, 0.72);
  --faint: rgba(226, 232, 255, 0.5);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.32);
  --glass: rgba(8, 10, 16, 0.5);
  --glass-strong: rgba(8, 10, 16, 0.8);
  --accent: #39ff88;
  --accent-soft: color-mix(in srgb, var(--accent) 35%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 55%, rgba(255, 255, 255, 0.2));
  --accent-ink: #04070a;
  --danger: #ff4d6a;
  --rec: #ff2d55;
  --font-ui: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
  --ease-pop: cubic-bezier(.2, .9, .3, 1.3);
  --ease-out: cubic-bezier(.2, .8, .3, 1);
  --ease-spring: cubic-bezier(.2, 1.5, .4, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --dock-h: 200px;
  color-scheme: dark;
  transition: --accent .5s ease;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); }
body {
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
svg { display: block; }
[hidden] { display: none !important; }
kbd {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 34px; padding: 0 9px;
  font: 700 16px/1 var(--font-mono); color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.28); border-bottom-width: 3px; border-radius: 8px;
  box-shadow: 0 0 14px -6px var(--accent), inset 0 1px 0 rgba(255,255,255,.15);
}

#view {
  position: fixed; inset: 0; width: 100%; height: 100%;
  display: block; touch-action: none; cursor: crosshair;
  background: var(--bg);
}
#ui { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
#ui > * { pointer-events: auto; }
#ui > .fx-layer, #ui > .toasts, #ui > .thumb-tip, #ui > .rec-frame, #ui > .hint { pointer-events: none; }

.noui #ui { display: none; }

/* Reduced motion: movement shrinks to fades. JS animations check AC.state.reducedMotion; looping CSS
 * animations are switched off per component under html[data-reduced-motion="on"]. */
/* Wide pass-through containers must not swallow drags meant for the picture. */
#ui > .start, #ui > .dock, #ui > .topbar, #ui > .rail { pointer-events: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
