* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #15202b;
  --text: #fff;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- home ---------- */
main {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sleep {
  font-size: 64px;
  letter-spacing: -0.03em;
  opacity: 0.87;
  white-space: nowrap;
}

/* the zoom draws its own copies of the word */
.sleep.is-zoomable { visibility: hidden; }
.level {
  position: fixed;
  top: 0;
  left: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.87;
  pointer-events: none;
  will-change: transform;
}

footer {
  position: fixed;
  bottom: 18px;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0 1rem;
  mix-blend-mode: difference;
}

footer button,
footer a {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: #fff;
  font: inherit;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease-out;
  touch-action: manipulation;
}
footer button:hover,
footer a:hover { opacity: 0.87; }

#help {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

:focus-visible {
  outline: 2px solid #ffc94d;
  outline-offset: 4px;
  border-radius: 2px;
}
::selection { background: #ffc94d; color: var(--bg); }

/* ---------- faq ---------- */
.faq {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 1rem 96px;
}
.faq .logo {
  display: inline-block;
  margin-bottom: 48px;
  color: #fff;
  opacity: 0.87;
}
.faq .logo svg { width: 40px; height: 40px; display: block; }
.faq h1 {
  font-size: clamp(44px, 11vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  opacity: 0.87;
  margin-bottom: 56px;
}
details { border-top: 1px solid rgba(255, 255, 255, 0.12); }
details:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 28px 0;
  font-size: 20px;
  opacity: 0.87;
}
summary::-webkit-details-marker { display: none; }
summary svg { flex: none; width: 22px; height: 22px; transition: transform 0.2s; }
details[open] summary svg { transform: rotate(180deg); }
details p {
  font-size: 44px;
  letter-spacing: -0.03em;
  opacity: 0.87;
  padding-bottom: 32px;
}
