* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --green: #00ff41;
  --green-dim: #00882b;
  --red: #ff2222;
  --bg: #000;
}

html {
  -webkit-text-size-adjust: 100%;
}

html, body {
  background: var(--bg);
  color: var(--green);
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior: none;
}

/* CRT scanlines overlay */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.12) 3px,
    rgba(0,0,0,0.12) 4px
  );
  pointer-events: none;
  z-index: 100;
}

/* STRENG GEHEIM Stempel */
.classified-stamp {
  position: fixed;
  top: 14px;
  right: -28px;
  border: 3px solid var(--red);
  color: var(--red);
  font-family: 'VT323', monospace;
  font-size: clamp(0.9rem, 3.5vw, 1.3rem);
  letter-spacing: 0.14em;
  padding: 3px 44px;
  transform: rotate(12deg);
  opacity: 0.6;
  z-index: 50;
  pointer-events: none;
  white-space: nowrap;
}

/* ─── Mission Screen ─── */
.mission-screen {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--green-dim);
  padding-bottom: 10px;
  margin-top: 8px;
}

.blink-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.label {
  font-size: clamp(0.6rem, 2.2vw, 0.72rem);
  letter-spacing: 0.1em;
  color: var(--green-dim);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Agent-Kennung */
.agent-id {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border: 1px solid var(--green-dim);
  padding: 10px 14px;
  background: rgba(0,255,65,0.04);
}

.agent-label {
  font-size: clamp(0.6rem, 2vw, 0.68rem);
  letter-spacing: 0.14em;
  color: var(--green-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

.agent-nr {
  font-family: 'VT323', monospace;
  font-size: clamp(2.6rem, 10vw, 3.5rem);
  color: var(--green);
  line-height: 1;
  text-shadow: 0 0 12px var(--green);
}

/* Greeting */
.greeting {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  line-height: 1.6;
}

.type-text {
  opacity: 0;
  animation: fadein 0.4s ease forwards;
}
.type-text strong { color: #fff; }
.type-text em     { color: var(--red); font-style: normal; }

.delay-1 { animation-delay: 0.8s; }
.delay-2 { animation-delay: 1.6s; }
.delay-3 { animation-delay: 2.4s; }

@keyframes fadein {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── Video ─── */
.video-wrapper {
  position: relative;
  width: 100%;
  border: 1px solid var(--green-dim);
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
}

#mission-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video-tap-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--green);
  background: rgba(0,0,0,0.6);
  cursor: pointer;
  transition: opacity 0.3s;
}

.fingerprint-icon {
  width: clamp(64px, 20vw, 100px);
  height: clamp(64px, 20vw, 100px);
  color: var(--green);
  filter: drop-shadow(0 0 8px var(--green));
  animation: fp-pulse 2s ease-in-out infinite;
}

@keyframes fp-pulse {
  0%, 100% { opacity: 1;    filter: drop-shadow(0 0 8px var(--green)); }
  50%       { opacity: 0.5; filter: drop-shadow(0 0 20px var(--green)); }
}

.tap-label {
  font-size: clamp(0.65rem, 2.5vw, 0.78rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dim);
}

/* ─── Burn Canvas ─── */
#burn-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 200;
  display: none;
}

/* ─── 404 Screen ─── */
.destroyed-screen {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 300;
  overflow-y: auto;
  padding: 48px 24px 40px;
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: #000;
}

.error-page {
  max-width: 480px;
}

.error-page h1 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: #000;
}

.error-page hr {
  border: none;
  border-top: 1px solid #ccc;
  margin-bottom: 16px;
}

.error-page .nginx-info {
  font-size: 0.85rem;
  color: #444;
}

/* ─── Versteckter Eltern-Block ─── */
#parent-trigger {
  position: fixed;
  bottom: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 18px;
  line-height: 1;
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  z-index: 400;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s, border-color 0.2s;
}
#parent-trigger:hover,
#parent-trigger:active {
  color: #888;
  border-color: #aaa;
}

#parent-panel {
  position: fixed;
  bottom: 44px;
  right: 12px;
  background: #000;
  color: var(--green);
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 0.78rem;
  border: 1px solid var(--green-dim);
  padding: 14px 18px;
  max-width: min(300px, calc(100vw - 24px));
  z-index: 400;
  line-height: 1.9;
  box-shadow: 0 0 16px rgba(0, 255, 65, 0.15);
}

.parent-header,
.parent-footer {
  color: var(--green-dim);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.parent-header { margin-bottom: 10px; }
.parent-footer { margin-top: 10px; }

.parent-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.parent-label {
  color: var(--green-dim);
  min-width: 88px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.parent-value {
  color: var(--green);
}

a.parent-map-link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Utility ─── */
.hidden {
  display: none !important;
}
