:root {
  --bg: #0b0f14;
  --text: #e5e7eb;
  --blue: #3b82f6;
}

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

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Source Code Pro', monospace;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

canvas#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.center {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  text-transform: lowercase;
  user-select: none;
  letter-spacing: .05em;
}

.title .blue {
  color: var(--blue);
}

.title .white {
  color: var(--text);
}

.links {
  margin-top: 20px;
  display: flex;
  gap: 60px;
  font-size: 1.2rem;
}

.links a {
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: all .25s ease;
  cursor: pointer;
}

.links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.links a:hover::after {
  transform: scaleX(1);
}

.links a:hover {
  font-weight: 700;
  font-size: 1.35rem;
  text-shadow: 0 0 8px var(--blue), 0 0 14px var(--blue);
}

.subtext {
  margin-top: 15px;
  font-size: 1rem;
  color: var(--text);
  text-shadow: 0 0 6px rgba(59,130,246,.6);
}

.tos-link {
  position: absolute;
  top: 20px; right: 30px;
  font-size: .95rem;
  cursor: pointer;
  color: var(--text);
  transition: color .25s ease;
  z-index: 2;
}

.tos-link:hover {
  color: var(--blue);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.modal {
  background: var(--bg);
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 20px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0,0,0,.8);
}

.modal h2 {
  margin-top: 0;
  color: var(--blue);
}

.modal button {
  margin-top: 20px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-family: 'Source Code Pro', monospace;
  font-weight: 700;
  box-shadow: 0 0 12px var(--blue);
  transition: all .3s ease;
}

.modal button:hover {
  box-shadow: 0 0 28px var(--blue), 0 0 40px var(--blue);
  text-shadow: 0 0 8px #fff;
}

.hidden {
  display: none;
}