/* Signum: as in the app. Flat #121212, accent #64FFDA, a glowing answer.
   The shell (header, footer, fonts) is in base.css; here its colors are
   switched to the app's. */

.o-signum {
  --bg: #121212;
  --accent: #64ffda;
  --on-accent: #00201a;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.42);
  --line: rgba(100, 255, 218, 0.28);
  --gold: var(--accent);
  --gold-hi: var(--accent);
  --quantum: var(--accent);
  background: var(--bg);
}

.o-signum .lang option {
  background: #1e1e1e;
}

/* ---------- backdrop: only while the oracle deliberates ---------- */

.sg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.sg-backdrop.on {
  opacity: 1;
}

.sg-backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.sg-backdrop.on img {
  animation: sg-pulse 1s ease-in-out infinite alternate;
}

/* 0.95 to 1.05, times the 6% overscan */
@keyframes sg-pulse {
  from {
    transform: scale(1.007);
  }
  to {
    transform: scale(1.113);
  }
}

.o-signum .site-head,
.o-signum .site-foot {
  position: relative;
  z-index: 1;
}

/* ---------- the page ---------- */

.sg {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 24px 0;
  text-align: center;
}

.sg-top {
  margin-bottom: 4px;
}

.sg-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.sg-tagline {
  margin: 6px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.sg-slot {
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(120px, 34vh, 300px);
}

.sg-answer {
  margin: 0;
  max-width: 100%;
  font-family: var(--sans);
  font-size: clamp(44px, 11vh, 84px);
  line-height: 1;
  letter-spacing: 4px;
  white-space: nowrap;
  transition: opacity 0.5s;
}

.sg-answer.idle {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.2);
}

.sg-answer.yes,
.sg-answer.no {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 24px var(--accent), 0 0 48px rgba(100, 255, 218, 0.5);
}

.sg-answer.hidden {
  opacity: 0;
}

.sg-decide {
  width: 100%;
  max-width: 420px;
  min-height: 64px;
  margin-top: clamp(12px, 4vh, 40px);
  padding: 20px 40px;
  border: 0;
  border-radius: 16px;
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 10px 28px rgba(100, 255, 218, 0.35);
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s, background-color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.sg-decide span {
  display: inline-block;
  white-space: nowrap;
}

.sg-decide:hover {
  box-shadow: 0 12px 34px rgba(100, 255, 218, 0.5);
}

.sg-decide:active {
  transform: translateY(1px) scale(0.99);
}

.sg-decide:disabled {
  background: rgba(100, 255, 218, 0.35);
  color: rgba(0, 32, 26, 0.5);
  box-shadow: none;
  cursor: default;
  transform: none;
}

.sg-decide:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.o-signum .status {
  margin-top: 18px;
}

.sg-hint {
  max-width: 420px;
  margin: 14px auto 0;
  font-size: 14px;
  color: var(--faint);
  text-wrap: balance;
}

.o-signum .noscript {
  color: var(--muted);
}
