*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 3rem;
}

.statement {
  font-size: clamp(1rem, 3vw, 1.5rem);
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.85);
  user-select: none;
}

.prompt {
  font-size: clamp(1rem, 3vw, 1.5rem);
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  animation: flicker 5.2s infinite;
  user-select: none;
}

.input-form input[type="text"] {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  font-family: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  width: 240px;
  padding: 0.5rem 0;
  outline: none;
  text-align: center;
  caret-color: rgba(255, 255, 255, 0.3);
}

.input-form input[type="text"]::placeholder {
  color: transparent;
}

@keyframes glitch-receive {
  0%   { opacity: 0.85; }
  6%   { opacity: 0.0; }
  12%  { opacity: 0.85; }
  22%  { opacity: 0.05; }
  28%  { opacity: 0.75; }
  48%  { opacity: 0.0; }
  54%  { opacity: 0.85; }
  72%  { opacity: 0.15; }
  80%  { opacity: 0.85; }
  90%  { opacity: 0.4; }
  100% { opacity: 0.85; }
}

body.received .statement {
  animation: glitch-receive 0.7s linear forwards;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

@keyframes bg-flash {
  0%   { opacity: 0; }
  8%   { opacity: 0.06; }
  18%  { opacity: 0; }
  38%  { opacity: 0.03; }
  55%  { opacity: 0; }
  72%  { opacity: 0.04; }
  100% { opacity: 0; }
}

body.received::after {
  animation: bg-flash 0.7s linear forwards;
}

@keyframes flicker {
  0%   { opacity: 0.85; }
  5%   { opacity: 0.55; }
  7%   { opacity: 0.85; }
  40%  { opacity: 0.85; }
  42%  { opacity: 0.4; }
  44%  { opacity: 0.85; }
  70%  { opacity: 0.85; }
  72%  { opacity: 0.6; }
  73%  { opacity: 0.85; }
  95%  { opacity: 0.85; }
  97%  { opacity: 0.35; }
  100% { opacity: 0.85; }
}

.privacy-note {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
  user-select: none;
}

.privacy-note a {
  color: inherit;
  text-decoration: none;
}

.privacy-note a:hover {
  color: rgba(255, 255, 255, 0.5);
}

.privacy-body {
  font-size: clamp(0.8rem, 2vw, 1rem);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.cf-turnstile {
  display: none;
}
