@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&family=Pirata+One&display=swap');
@import url('./tokens.css');

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--c-midnight);
  color: var(--c-bone);
  font-family: var(--font-body);
  line-height: 1.4;
}

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}

h1 { color: var(--c-lantern); font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { color: var(--c-bone); font-size: clamp(1.25rem, 3vw, 2rem); }

a { color: var(--c-toxic); }

.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
  text-align: center;
}

.panel {
  background: var(--c-midnight);
  border: var(--line) solid var(--c-lantern);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 0 0 var(--line) var(--c-ink);
}

/* Dev status (F0) */
.dev-status { list-style: none; margin: 0; padding: 0; text-align: left; font-size: 1rem; }
.dev-status li { padding: 0.25rem 0; }
.dev-status .ok { color: var(--c-toxic); }
.dev-status .fail { color: var(--c-blood); }
.dev-status .wait { color: var(--c-parchment); }

/* Shared controls */
.btn {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--c-bone);
  background: var(--c-plum);
  border: var(--line) solid var(--c-lantern);
  border-radius: 14px;
  padding: 0.6rem 1.75rem;
  box-shadow: 0 0 0 3px var(--c-ink);
  cursor: pointer;
  transition: box-shadow var(--t-fast), opacity var(--t-fast);
}
.btn:hover:not(:disabled), .btn:focus-visible { box-shadow: 0 0 0 3px var(--c-ink), var(--glow); outline: none; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.muted { color: var(--c-parchment); opacity: 0.8; }
.small { font-size: 0.9rem; }
[hidden] { display: none !important; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 150%) rotate(-1.5deg);
  background: var(--c-parchment);
  color: var(--c-ink);
  border: 4px solid var(--c-ink);
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  transition: transform var(--t-max) ease;
  z-index: 100;
  max-width: calc(100vw - 2rem);
}
.toast.show { transform: translate(-50%, 0) rotate(-1.5deg); }
a.btn { display: inline-block; text-decoration: none; }
.btn-ghost { background: transparent; }

/* The logo (public/assets/ui/logo_wordmark.svg, scripts/build-logo.mjs) in place of a text heading. */
h1[data-logo] { margin: 0 auto; line-height: 0; }
h1[data-logo] img { display: block; width: min(90vw, 620px); height: auto; margin: 0 auto; }

/* Trivia: the answers appear after the reading time (projector and phones). */
.answers-in { animation: answers-in 400ms ease-out both; }
@keyframes answers-in { from { opacity: 0; transform: translateY(12px); } }
