:root {
  --bg: #000;
  --fg: #3cff7a;
  --dim: #1f8a45;
  --hot: #ff3b3b;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 var(--mono);
  overflow: hidden;
}

::selection { background: var(--fg); color: var(--bg); }

#rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .22;
}

main {
  position: relative;
  display: grid;
  place-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 400;
  letter-spacing: .04em;
  text-shadow: 0 0 .35em rgba(60, 255, 122, .45);
}

.cursor { animation: blink 1.1s steps(1) infinite; }

#line {
  min-height: 1.5em;
  margin: 1rem 0 0;
  color: var(--dim);
  font-size: clamp(.85rem, 2vw, 1rem);
}

#pi {
  position: fixed;
  right: 1.25rem;
  bottom: 1rem;
  padding: .25rem .5rem;
  border: 0;
  background: none;
  color: var(--dim);
  font: 1.25rem var(--mono);
  opacity: .45;
  cursor: default;
  transition: opacity .3s, color .3s, text-shadow .3s;
}

#pi:hover, #pi:focus-visible {
  opacity: 1;
  color: var(--hot);
  text-shadow: 0 0 .5em var(--hot);
  outline: none;
}

#gate {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(0, 0, 0, .92);
}

#gate-out {
  width: min(42rem, 100%);
  margin: 0;
  white-space: pre-wrap;
  font: inherit;
}

#gate-out .hot { color: var(--hot); }

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

@media (prefers-reduced-motion: reduce) {
  #rain { display: none; }
  .cursor { animation: none; }
}

a { color: var(--fg); }
a:hover, a:focus-visible { color: var(--bg); background: var(--fg); outline: none; }
