/* Only btc tokens (btc-tokens.css -> __Basis) – no hard-coded colors or fonts. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--btc-color-bg);
  color: var(--btc-color-heading);
  font-family: var(--btc-font-body);
  font-weight: var(--btc-weight-regular);
  line-height: var(--btc-line-height);
  -webkit-font-smoothing: antialiased;
}

/* Full-screen line world behind the text */
#linienwelt {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

main {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: var(--btc-space-4) var(--btc-space-2);
  pointer-events: none;
}

/* Scene buttons: one per animation */
.szenen {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(var(--btc-space-3), env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--btc-space-1);
  padding: 0 var(--btc-space-2);
}

.szenen button {
  font: inherit;
  font-size: 12.5px;
  font-weight: var(--btc-weight-regular);
  color: var(--btc-body);
  background: color-mix(in srgb, var(--btc-nacht) 55%, transparent);
  border: 1px solid var(--btc-line);
  border-radius: 999px;
  padding: 9px 16px;
  min-height: 40px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: color 150ms, border-color 150ms, background-color 150ms;
}

.szenen button:hover {
  color: var(--btc-fg);
  border-color: var(--btc-mint);
}

/* scene currently on screen (also during the sequence) */
.szenen button[data-aktiv] {
  color: var(--btc-fg);
  border-color: var(--btc-line-petrol);
}

.szenen button[aria-pressed="true"] {
  color: var(--btc-signal);
  border-color: var(--btc-signal);
}

.szenen button:focus-visible {
  outline: 2px solid var(--btc-signal);
  outline-offset: 3px;
}

/* Claim style: Regular + Thin, tight tracking */
h1 {
  margin: 0;
  font-family: var(--btc-font-heading);
  font-weight: var(--btc-weight-regular);
  font-size: clamp(48px, 10vw, 128px);
  line-height: 1.04;
  letter-spacing: var(--btc-tracking-display);
  text-align: center;
}

h1 .thin {
  font-weight: var(--btc-weight-thin);
  letter-spacing: -0.03em;
}

/* Signal green appears once, sparingly */
h1 .dot {
  color: var(--btc-color-primary);
}

h1 > span {
  display: inline-block;
  animation: satz 1s var(--btc-ease) both;
}

h1 > span:nth-child(2) {
  animation-delay: 0.3s;
}

@keyframes satz {
  from {
    opacity: 0;
    transform: translateY(0.25em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  h1 > span {
    animation: none;
  }
}
