body {
  margin: 0;
  padding: 1.5rem;
  background-color: #2A034C; /*#0a1a40*/
  color: white;
  font-family: system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2rem;
  margin: 0;
}

header p {
  color: #a0aec0;
  margin-top: 0.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 1400px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 240px));
  justify-content: center;
}

.cols-1 { grid-template-columns: repeat(1, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }

.tile {
  background-color: #322D78; /*#1e3a8a*/
  padding: 1.25rem;
  border-radius: 1rem;
  text-align: center;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: clamp(0.8rem, 2.5vw, 1.2rem);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
  line-height: 1.2;
}

.tile:hover {
  background-color: #375bcf;
  transform: translateY(-2px);
}

.square {
  aspect-ratio: 1 / 1;
  height: auto;
}

footer {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.875rem;
  color: #94a3b8;
  text-align: center;
}

