:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --accent: #0ea5e9;
  --line: #dbeafe;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, #e2e8f0, transparent 40%),
    linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.logo-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.14), transparent 55%),
    rgba(248, 250, 252, 0.98);
}

.logo-gate-button {
  border: 0;
  background: none;
  color: #0f172a;
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: clamp(3rem, 16vw, 11rem);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

.logo-gate-button:hover {
  transform: scale(1.02);
}

.logo-gate.is-leaving {
  animation: gate-fade 3.8s ease forwards;
  pointer-events: none;
}

.logo-gate.is-leaving .logo-gate-button {
  animation: logo-shrink 3.8s ease forwards;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: #0f172a;
  color: #f8fafc;
  position: sticky;
  top: 0;
}

.brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}

nav {
  display: flex;
  gap: 16px;
}

nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.95rem;
}

nav a.active,
nav a:hover {
  color: #7dd3fc;
}

main {
  max-width: 820px;
  margin: 28px auto;
  padding: 0 18px 28px;
  display: grid;
  gap: 14px;
}

.panel {
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.credits-menu {
  margin-top: 180vh;
}

.credits-menu a {
  color: #0369a1;
  font-weight: 700;
}

.button {
  display: inline-block;
  margin-top: 10px;
  background: var(--accent);
  color: #052e3d;
  padding: 10px 14px;
  border-radius: 9px;
  text-decoration: none;
}

@keyframes gate-fade {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes logo-shrink {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: scale(0.35);
    filter: blur(3px);
  }
}

@media (max-width: 620px) {
  .topbar {
    position: static;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }
}
