:root {
  --bg: #000;
  --fg: #fff;
  --gold: #f4d27a;
}

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Orbitron', sans-serif;
  height: 100%;
  overflow: hidden;
}

#stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  background: transparent;
}

.wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.center { text-align: center; }

.sigil {
  width: 240px;
  height: auto;
  animation: glow 6s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 10px var(--gold)); opacity: 0.85; }
  50% { filter: drop-shadow(0 0 25px var(--gold)); opacity: 1; }
}

.count-wrap {
  position: relative;
  display: inline-block;
}
.count {
  font-size: clamp(28px, 6vw, 72px);
  letter-spacing: .12em;
  text-shadow: 0 0 10px var(--gold);
}
.count-runes {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  font-size: clamp(28px, 6vw, 72px);
  letter-spacing: .12em;
  color: rgba(244, 210, 122, 0.1);
  pointer-events: none;
}

.arm {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: .6rem 1.2rem;
  letter-spacing: .2em;
  cursor: pointer;
  font-size: 1.5em;
}
.arm[disabled] {
  opacity: .6;
  cursor: default;
}

.whisper {
  color: #ccc;
  max-width: 52ch;
  margin: 1rem auto 0;
  font-size: .95rem;
  font-style: italic;
  transition: opacity 1s ease;
}

.fade-to-black {
  animation: fadeBlack 1.5s forwards;
}
@keyframes fadeBlack {
  to { background: #000; }
}

.flash-glyphs {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  color: var(--gold);
  font-size: 4em;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  animation: flash 1s forwards;
}
@keyframes flash {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}
