:root {
  --bg1: #0b1f3a;
  --bg2: #12406b;
  --accent: #ffc83d;
  --text: #f4f7fb;
  --muted: #b9c8dc;
}

* { box-sizing: border-box; }

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg1), var(--bg2), #0e6b5c, var(--bg1));
  background-size: 300% 300%;
  animation: drift 24s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow-x: hidden;
}

@keyframes drift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.top, .hero, .foot { position: relative; z-index: 1; }

.top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px;
}
.wappen { height: 72px; width: 65px; object-fit: cover; object-position: left center; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.brand strong { display: block; font-size: 1.15rem; }
.brand span { color: var(--muted); font-size: .95rem; }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.eyebrow {
  margin: 0;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: .9rem;
}
h1 {
  margin: 6px 0 28px;
  font-size: clamp(1.8rem, 5vw, 3rem);
}
.lead { margin: 0; font-size: clamp(1rem, 2.5vw, 1.4rem); color: var(--muted); }

.counter {
  position: relative;
  margin: 14px 0;
  padding: 0 12px;
}
.seconds {
  display: inline-block;
  font-size: clamp(2.6rem, 13vw, 8rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(255, 200, 61, .55), 0 0 60px rgba(255, 200, 61, .25);
}
.digits { display: inline-flex; align-items: baseline; }
.ms {
  font-size: clamp(1.2rem, 5vw, 3.2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  opacity: .85;
  margin-left: .1em;
  min-width: 2.6em;
  text-align: left;
}
.seconds.tick { animation: tick .35s ease-out; }
@keyframes tick {
  0%   { transform: scale(1.06); text-shadow: 0 0 40px rgba(255,200,61,.95); }
  100% { transform: scale(1); }
}

.ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 40px; height: 40px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}
.ring.go { animation: ring .9s ease-out; }
@keyframes ring {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: .8; }
  100% { transform: translate(-50%, -50%) scale(14); opacity: 0; }
}

.sub { margin-top: 24px; color: var(--muted); min-height: 1.4em; }

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  font-size: .85rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  body, .seconds.tick, .ring.go { animation: none; }
}
