:root {
  --bg: #0a0d10;
  --panel: #11161b;
  --text: #d6dde5;
  --muted: #7f8b96;
  --line: #26303a;
  --accent: #8ee3ff;
  --error: #ff6b6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #10161d, #07090c 60%);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.7;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.panel {
  background: rgba(17, 22, 27, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  margin-bottom: 24px;
}

.mono {
  font-family: "Courier New", monospace;
  letter-spacing: 0.04em;
}

.typewriter-group {
  margin-top: 18px;
}

.typewriter-line {
  font-family: "Courier New", monospace;
  line-height: 1.8;
  letter-spacing: 0.02em;
  margin: 0 0 16px 0;
  min-height: 1.8em;
  position: relative;
  white-space: pre-wrap;
}

.typewriter-line.typing::after {
  content: "_";
  color: var(--accent);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

.actions {
  margin-top: 32px;
}

.controls {
  margin-top: 24px;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 32px 0 28px;
}

.image-fragment-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 24px 0 0 0;
}

.evidence-image {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
}

.image-fragments {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
}

.image-fragment {
  background: #0b1116;
  border: 1px solid rgba(20, 28, 34, 0.7);
  opacity: 1;
  transition: opacity 0.45s ease;
}

.image-fragment.revealed {
  opacity: 0;
}

label {
  display: block;
  margin-top: 18px;
  margin-bottom: 8px;
  font-family: "Courier New", monospace;
}

input {
  width: 100%;
  max-width: 320px;
  padding: 12px;
  background: #0b1116;
  color: var(--text);
  border: 1px solid #33414f;
  border-radius: 8px;
  margin-bottom: 12px;
}

button {
  background: #101820;
  color: var(--accent);
  border: 1px solid #355066;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #13202b;
}

.hint-toggle {
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0;
}

.hint {
  color: var(--muted);
  font-size: 14px;
  margin-top: 0;
}

.error {
  color: var(--error);
  margin-top: 10px;
}

.hidden {
  display: none;
}

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