/* Zawadie Games menu — mobile-menu-app style (layout ref: pamoja.ke) */
:root {
  --purple-dark: #481449;
  --purple-mid: #710A73;
  --purple-bright: #605BE5;
  --purple-light: #853FE7;
  --ink: #2d2d2d;
  --muted: #8a8696;
  --card: #ffffff;
  --bg: #f4f1fa;
  --shadow: 0 2px 8px rgba(72, 20, 73, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Phone-app column: looks like a mobile menu even on a desktop */
.app {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* Header bar */
.topbar {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-mid) 55%, var(--purple-bright) 100%);
  color: #fff;
  padding: 28px 22px 24px;
  border-radius: 0 0 24px 24px;
}

.brand { display: flex; align-items: center; gap: 14px; }

.logo {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
}

.brand h1 { font-size: 1.45rem; font-weight: 700; letter-spacing: 0.2px; }
.brand p { font-size: 0.82rem; opacity: 0.85; margin-top: 2px; }

/* Content */
.content { flex: 1; padding: 20px 18px 8px; }

.welcome {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  background: #fff;
  border: 1px solid #ece7f5;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

/* Launcher grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 340px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  aspect-ratio: 1 / 1;
  padding: 10px 6px;
  background: var(--card);
  border: 1px solid #ece7f5;
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.tile:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(72, 20, 73, 0.16); }
.tile:active { transform: translateY(0); }

.tile-icon { font-size: 30px; line-height: 1; }
.tile-name { font-size: 0.8rem; font-weight: 600; line-height: 1.2; }
.tile-author { font-size: 0.68rem; color: var(--muted); line-height: 1.2; }

/* "Coming soon" state for tiles whose link isn't live yet */
.tile.soon { opacity: 0.55; cursor: default; pointer-events: none; filter: saturate(0.4); }
.tile.soon:hover { transform: none; box-shadow: var(--shadow); }

/* Footer */
.footer {
  padding: 14px 18px 22px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer a { color: var(--purple-mid); text-decoration: none; font-weight: 500; }
.footer a:hover { text-decoration: underline; }
