:root {
  --bg1: #0b0f1e;
  --bg2: #141b3a;
  --c1: #ffd700;
  --c2: #a50044;
  --c3: #004d98;
  --muted: #99a3b3;
  --card: #11162c;
  --ring: rgba(255, 215, 0, 0.35);
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial,
    sans-serif;
  background: linear-gradient(145deg, #004d98, #a50044);
  color: #eef2ff;
  text-align: center;
}

.wrap {
  width: min(100%, 900px);
  padding: 1.5rem;
}

.card {
  background: color-mix(in srgb, var(--card) 92%, black);
  border-radius: 20px;
  border: 1px solid #1b2342;
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.badge {
  display: inline-block;
  background: #0e1b35;
  color: var(--c1);
  border-radius: 20px;
  padding: 6px 12px;
  margin-bottom: 1rem;
}

.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.logos img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.vs {
  font-weight: bold;
  color: var(--c1);
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.unit {
  background: rgba(10, 16, 40, 0.8);
  border-radius: 16px;
  padding: 1rem 0.5rem;
  border: 1px solid #1f2e5c;
  animation: fadeIn 1s ease-in;
}

.num {
  font-size: 2.5rem;
  font-weight: 800;
}

.lbl {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
}

.controls {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

button,
.linklike {
  background: #0f1a36;
  color: #fff;
  border: 1px solid #223569;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}

button:hover,
.linklike:hover {
  filter: brightness(1.15);
}

.foot {
  color: var(--muted);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s forwards ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 📱 Responsywność */
@media (max-width: 600px) {
  .timer {
    grid-template-columns: repeat(2, 1fr);
  }
  .num {
    font-size: 2rem;
  }
  .lbl {
    font-size: 0.8rem;
  }
  .logos img {
    width: 55px;
    height: 55px;
  }
  h1 {
    font-size: 1.5rem;
  }
}
