:root {
  color-scheme: dark;
  --void: #070606;
  --bone: #ece7db;
  --ash: #6f6a62;
  --dim: #4a4640;
  --faint: #3a3732;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { height: 100%; background: var(--void); overscroll-behavior: none; }

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--void);
  color: var(--bone);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  animation: reveal 1.4s ease both;
}

#eye { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.corner {
  position: fixed;
  bottom: calc(26px + env(safe-area-inset-bottom));
  z-index: 5;
  margin: 0;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .14em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}
.corner.left { left: calc(28px + env(safe-area-inset-left)); }
.corner.right { right: calc(28px + env(safe-area-inset-right)); display: flex; align-items: flex-end; gap: 12px; }
.sigil { display: block; width: 32px; height: 32px; image-rendering: pixelated; }
#fp { color: var(--bone); transition: color 1.2s ease; }
#fp.pending { color: var(--faint); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

noscript div {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
  background: var(--void); color: var(--ash); font: 11px var(--mono); letter-spacing: .3em;
}

@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 700px) {
  .corner { bottom: calc(20px + env(safe-area-inset-bottom)); font-size: 10px; letter-spacing: .1em; }
  .corner.left { left: calc(18px + env(safe-area-inset-left)); }
  .corner.right { right: calc(18px + env(safe-area-inset-right)); gap: 10px; }
  .sigil { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
