:root {
  color: #f7f8fb;
  background: #090b12;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(5, 8, 14, 0.58), rgba(5, 8, 14, 0.72)),
    url("./data/bg.jpg") center / cover fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 0 64px;
}

.topbar {
  display: grid;
  justify-items: center;
  margin-bottom: 46px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: #a9b3c9;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.apps {
  width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 24px 22px;
}

.app-card {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 126px;
  padding: 18px 10px 16px;
  color: #f8fafc;
  outline: none;
}

.app-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    #171d2a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 30px rgba(0, 0, 0, 0.35);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.app-card:hover .app-icon,
.app-card:focus-visible .app-icon {
  transform: translateY(-3px);
  background-color: #222a3a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 36px rgba(0, 0, 0, 0.45);
}

.app-card:focus-visible .app-icon {
  box-shadow:
    0 0 0 3px rgba(99, 179, 237, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 36px rgba(0, 0, 0, 0.45);
}

.app-favicon {
  width: 46px;
  height: 46px;
  border: 0;
  pointer-events: none;
}

.app-fallback {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
}

.app-label {
  max-width: 100%;
  color: #f7f9fd;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, 1120px);
    padding-top: 30px;
  }

  .topbar {
    margin-bottom: 32px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .app-card {
    min-height: 124px;
    padding-inline: 8px;
  }
}
