/* P-01 KASSETTENARCHIV 2.0 — Typo-Skala 11/13/21, cleanes Chrome */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #070706;
  --ink: rgba(255, 255, 255, 0.72);
  --ink-dim: rgba(255, 255, 255, 0.34);
  --ink-faint: rgba(255, 255, 255, 0.18);
  --mono: "SF Mono", "Menlo", "Consolas", monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease-move: cubic-bezier(0.25, 0.85, 0.3, 1);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
  cursor: grab;
}

canvas.is-dragging { cursor: grabbing; }
canvas.is-hot { cursor: pointer; }

.fallback-2d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  background: var(--bg);
  padding: 2rem;
  text-align: center;
  z-index: 5;
}

.fallback[hidden],
.selfcheck[hidden] {
  display: none !important;
  pointer-events: none;
}

.fallback-title {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.fallback-body {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  max-width: 42ch;
  margin: 0 auto;
  line-height: 1.7;
}

.selfcheck {
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  z-index: 6;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 220, 180, 0.85);
  background: rgba(20, 14, 10, 0.78);
  border: 1px solid rgba(255, 200, 140, 0.22);
  pointer-events: none;
}

.chrome {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.hud-top {
  position: absolute;
  top: clamp(18px, 3.2vh, 32px);
  left: clamp(18px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: min(48ch, 70vw);
}

.hud-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
}

.hud-work {
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--ink);
  line-height: 1.15;
  min-height: 1.15em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  min-height: 1em;
}

.hud-hint {
  position: absolute;
  bottom: clamp(18px, 3.2vh, 32px);
  left: clamp(18px, 3vw, 32px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  line-height: 1.6;
  max-width: min(48ch, 88vw);
  transition: opacity 140ms var(--ease-move);
}

.telemetry {
  position: absolute;
  bottom: clamp(18px, 3.2vh, 32px);
  right: clamp(18px, 3vw, 32px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-align: right;
}

.sr-works {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  .hud-hint { transition: none; }
}
